- Notifications
You must be signed in to change notification settings - Fork52
Code Tool for Editor.js 2.0
License
NotificationsYou must be signed in to change notification settings
editor-js/code
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Code Tool for theEditor.js allows to include code examples in your articles.
Get the package
yarn add @editorjs/code
Include module at your application
importCodeToolfrom'@editorjs/code';
Optionally, you can load this tool from CDNJsDelivr CDN
Add a new Tool to thetools property of the Editor.js initial config.
vareditor=EditorJS({ ...tools:{ ...code:CodeTool,}...});
| Field | Type | Description |
|---|---|---|
| placeholder | string | Code Tool's placeholder string |
This Tool returns code.
{"type" :"code","data" : {"code":"body {\n font-size: 14px;\n line-height: 16px;\n}", }}About
Code Tool for Editor.js 2.0
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.
