1.0.0 • Published 1 year ago

@davidyappeter/editorjs-inline-tool v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

Inline Onclick

Create custom inline tool for Editor.js.

Installation

Get the package

yarn add @davidyappeter/editorjs-inline-tool

Include module at your application

import InlineOnclick from "@davidyappeter/editorjs-inline-tool";

Configuration

createGenericInlineTool returns an InlineTool for EditorJS. The following options are available:

NameRequiredTypeDefaultDescription
sanitizefalseobjectundefinedObject that defines rules for automatic sanitizing.
shortcutfalsestringundefinedShortcut to apply Tool's render and inserting behaviour
tagNametruestringundefinedtext formatting tag (eg. bold)
toolboxIcontruestringundefinedIcon for the tools inline toolbar