- Notifications
You must be signed in to change notification settings - Fork25
Inline-Code Tool for Editor.js 2.0
License
NotificationsYou must be signed in to change notification settings
editor-js/inline-code
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Inline Tool for marking code-fragments for theEditor.js.
Get the package
yarn add @editorjs/inline-code
Include module at your application
importInlineCodefrom'@editorjs/inline-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:{ ...inlineCode:{class:InlineCode,shortcut:'CMD+SHIFT+M',},}, ...});
This Tool has no config params
Marked text will be wrapped with aspan tag with aninline-code class.
{"type" :"text","data" : {"text" :"Create a directory for your module, enter it and run <span class=\"inline-code\">npm init</span> command." }}About
Inline-Code Tool for Editor.js 2.0
Topics
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.
Contributors9
Uh oh!
There was an error while loading.Please reload this page.
