2.9.2 • Published 1 month ago

@editorjs/code v2.9.2

Weekly downloads
3,885
License
MIT
Repository
github
Last release
1 month ago

npm.io

Code Tool for Editor.js

Code Tool for the Editor.js allows to include code examples in your articles.

npm.io

Installation

Get the package

yarn add @editorjs/code

Include module at your application

import CodeTool from '@editorjs/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: {
    ...
    code: CodeTool,
  }
  
  ...
});

Config Params

FieldTypeDescription
placeholderstringCode Tool's placeholder string

Output data

This Tool returns code.

{
    "type" : "code",
    "data" : {
        "code": "body {\n font-size: 14px;\n line-height: 16px;\n}",
    }
}
byevolution@infinitebrahmanuniverse/nolb-_edi@everything-registry/sub-chunk-277hsl-strapi-plugin-react-editorjshorul-editorilla-buildermedusa-plugin-bloggermtxtrpcv2murph-projectnuxt3-editorjsodoc-viewer@itandu/admin-panel@cromwell/admin-panel@creators-view/fluid-ui@highoutput/neyar@kaniyarasu/react-editor.js@itfin/components@keystonejs-contrib/fields-editorjsdirectual-web-componentsdotailadraftsdoreactaeditorjs-reacteditor-js-component@ten24group/ui24@om-mediaworks/shacl-formreusecorestrapi-academy-plus-editorjsstrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedstrapi-plugin-editorstrapi-plugin-editorjs-fieldstrapi-plugin-editorjs-nextstrapi-plugin-k-editorjsstd-pagesarman-vue-editor-js@chizhik/ui-lib@carabi/ui@bigbossstudio/strapi-plugin-editorjs@centrepointmedia/synoraui@acf-int/strapi-plugin-editorjs@acf-int/strapi-plugin-react-editorjswonder-image@alfresco/adf-process-services-cloud@brandontle/react-editor.jsui-duckumomega-foundation@emilienkopp/ejs-factory@emilienkopp/html-factory@fakel/rest-admin@techdemocrat/fluid-ui@todokek/react-editor.js@tienlucky/storage@virtual-spirit/vspace-labs@vt7/vue-editor@wulperstudio/wulper-studio-editor@zdzcode/zc-web-vuejs-coreblock-article-jsbyevolution-componentsall-in-one-editorjs@zalastax/nolb-_edi@realmocean/editor@rainyland-dev/strapi-plugin-editorjs@questflow/canvas@dicarbene/nuxt3-editorjs@smileeye.edu.vn/editor@rypock/react-frontend@softkit/strapi-plugin-react-editorjs@nwire/amit-design-system@oak-digital/strapi-plugin-react-editorjs@offlegacy/react-editorjs@pingfe/editorquickvue-editorjsreact-editor-simple-image.jsreact-editor-simple-image
2.9.2

1 month ago

2.9.0

12 months ago

2.8.0

2 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.1

6 years ago

2.4.0

6 years ago