1.0.0 • Published 1 year ago
@davidyappeter/editorjs-inline-tool v1.0.0
Inline Onclick
Create custom inline tool for Editor.js.
Installation
Get the package
yarn add @davidyappeter/editorjs-inline-toolInclude module at your application
import InlineOnclick from "@davidyappeter/editorjs-inline-tool";Configuration
createGenericInlineTool returns an InlineTool for EditorJS. The following
options are available:
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| sanitize | false | object | undefined | Object that defines rules for automatic sanitizing. |
| shortcut | false | string | undefined | Shortcut to apply Tool's render and inserting behaviour |
| tagName | true | string | undefined | text formatting tag (eg. bold) |
| toolboxIcon | true | string | undefined | Icon for the tools inline toolbar |
1.0.0
1 year ago