Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Inline-Code Tool for Editor.js 2.0

License

NotificationsYou must be signed in to change notification settings

editor-js/inline-code

Repository files navigation

InlineCode Tool

Inline Tool for marking code-fragments for theEditor.js.

Installation

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

Usage

Add a new Tool to thetools property of the Editor.js initial config.

vareditor=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 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors9


[8]ページ先頭

©2009-2025 Movatter.jp