@davidyappeter/editorjs-inline-tool
v1.0.0
Published
Create a text formatting inline tool for Editor.js (Fix shortcut issue)
Downloads
10
Maintainers
Readme
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:
| 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 |