2.9.3 • Published 1 year ago

@editorjs/code v2.9.3

Weekly downloads
3,885
License
MIT
Repository
github
Last release
1 year 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-277wonder-imagestrapi-plugin-editorstrapi-plugin-editorjs-fieldstrapi-plugin-editorjs-nextstrapi-plugin-k-editorjsstrapi-academy-plus-editorjsilla-builderhorul-editorhsl-strapi-plugin-react-editorjsmedusa-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@pingfe/editor@techdemocrat/fluid-uieditorjs-reacteditor-js-component@acf-int/strapi-plugin-editorjs@centrepointmedia/synoraui@chizhik/ui-lib@bigbossstudio/strapi-plugin-editorjs@brandontle/react-editor.js@carabi/uibyevolution-componentsblock-article-jsdirectual-web-componentsdoreactadotailadrafts@alfresco/adf-process-services-cloud@om-mediaworks/shacl-formstd-pagestrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedui-duckumomega-foundation@acf-int/strapi-plugin-react-editorjsmtxtrpcv2murph-projectodoc-viewernuxt3-editorjssarman-vue-editor-jsreact-editor-simple-image.jsreact-editor-simple-imagequickvue-editorjsreusecore@creators-view/fluid-ui@cromwell/admin-panel@dicarbene/nuxt3-editorjs@emilienkopp/ejs-factory@emilienkopp/html-factory@fakel/rest-admin@softkit/strapi-plugin-react-editorjs@smileeye.edu.vn/editor@highoutput/neyar@itandu/admin-panel@itfin/components@rainyland-dev/strapi-plugin-editorjs@keystonejs-contrib/fields-editorjs@questflow/canvas@realmocean/editor@offlegacy/react-editorjs@oak-digital/strapi-plugin-react-editorjs@nwire/amit-design-system@kaniyarasu/react-editor.js@rypock/react-frontend
2.9.3

1 year ago

2.9.2

1 year ago

2.9.0

2 years ago

2.8.0

3 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.1

7 years ago

2.4.0

7 years ago