1.5.1 • Published 11 months ago

@editorjs/inline-code v1.5.1

Weekly downloads
3,830
License
MIT
Repository
github
Last release
11 months ago

npm.io

InlineCode Tool

Inline Tool for marking code-fragments for the Editor.js.

npm.io

Installation

Get the package

yarn add @editorjs/inline-code

Include module at your application

import InlineCode from '@editorjs/inline-code';

Optionally, you can load this tool from CDN JsDelivr CDN

Usage

Add a new Tool to the tools property of the Editor.js initial config.

var editor = EditorJS({
  ...
  
  tools: {
    ...
    inlineCode: {
      class: InlineCode,
      shortcut: 'CMD+SHIFT+M',
    },
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

Marked text will be wrapped with a span tag with an inline-code class.

{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <span class=\"inline-code\">npm init</span> command."
    }
}
byevolution@infinitebrahmanuniverse/nolb-_edi@everything-registry/sub-chunk-277wonder-imagestrapi-plugin-editorstrapi-plugin-editorjs-fieldstrapi-plugin-editorjs-nextstrapi-academy-plus-editorjs@cromwell/admin-panel@canburaks/fibs-editor@om-mediaworks/shacl-formstd-pagestrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedui-duckumomega-foundation@appconda/console-sdk@appconda/react@appconda/react-sdk@appconda/sdk@appconda/web-sdk@alfresco/adf-process-services-cloud@bigbossstudio/strapi-plugin-editorjs@carabi/ui@celmino/sdk@celmino/sdk-console@chizhik/ui-lib@centrepointmedia/synoraui@acf-int/strapi-plugin-react-editorjs@acf-int/strapi-plugin-editorjs@brandontle/react-editor.js@dicarbene/nuxt3-editorjs@highoutput/neyar@itfin/components@itandu/admin-panel@fakel/rest-admin@keystonejs-contrib/fields-editorjs@kaniyarasu/react-editor.js@offlegacy/react-editorjs@rainyland-dev/strapi-plugin-editorjs@rypock/react-frontend@questflow/canvas@realmocean/editor@realmocean/sdk@oak-digital/strapi-plugin-react-editorjs@smileeye.edu.vn/editor@softkit/strapi-plugin-react-editorjsmtxtrpcv2murph-projectodoc-viewernuxt3-editorjssarman-vue-editor-jsreact-editor-simple-image.jsreact-editor-simple-imagenode-red-contrib-ui-editorquickvue-editorjssmart-editorilla-builderhorul-editorhsl-strapi-plugin-react-editorjslike-watermedusa-plugin-bloggermedusa-plugin-blogger-ar@vt7/vue-editor@wulperstudio/wulper-studio-editor@tienlucky/storage@todokek/react-editor.js@virtual-spirit/vspace-labs@zalastax/nolb-_edi@zdzcode/zc-web-vuejs-core@swiftease/atali-formall-in-one-editorjsbyevolution-componentsblock-article-jsdirectual-web-componentsdoreactadotailaeditorjs-reacteditor-js-componenteditor-js-themeeditorjs-vuefibs-editor
1.5.1

11 months ago

1.5.0

2 years ago

1.4.0

3 years ago

1.3.1

6 years ago

1.3.0

6 years ago