1.5.2 • Published 4 months ago

@editorjs/inline-code v1.5.2

Weekly downloads
3,830
License
MIT
Repository
github
Last release
4 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@canburaks/fibs-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-coreall-in-one-editorjs@itandu/admin-panel@acf-int/strapi-plugin-editorjs@itfin/components@cromwell/admin-panel@alfresco/adf-process-services-cloud@om-mediaworks/shacl-formstd-pagestrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedui-duckumomega-foundation@bigbossstudio/strapi-plugin-editorjs@carabi/ui@celmino/sdk@celmino/sdk-console@chizhik/ui-lib@centrepointmedia/synoraui@acf-int/strapi-plugin-react-editorjs@brandontle/react-editor.js@rypock/react-frontend@realmocean/editor@realmocean/sdkmtxtrpcv2murph-projectodoc-viewernuxt3-editorjssarman-vue-editor-jsreact-editor-simple-image.jsreact-editor-simple-imagenode-red-contrib-ui-editorquickvue-editorjssmart-editorbyevolution-componentsblock-article-jsdirectual-web-componentsdoreactadotaila@swiftease/atali-formeditorjs-reacteditor-js-componenteditor-js-themeeditorjs-vuefibs-editor@softkit/strapi-plugin-react-editorjs@smileeye.edu.vn/editor@fakel/rest-admin@appconda/react-sdk@appconda/sdk@appconda/web-sdk@appconda/console-sdk@dicarbene/nuxt3-editorjs@highoutput/neyar@offlegacy/react-editorjs@oak-digital/strapi-plugin-react-editorjs@rainyland-dev/strapi-plugin-editorjs@questflow/canvas@kaniyarasu/react-editor.js@keystonejs-contrib/fields-editorjs
1.5.2

4 months ago

1.5.1

1 year ago

1.5.0

2 years ago

1.4.0

3 years ago

1.3.1

6 years ago

1.3.0

7 years ago