@davidyappeter/editorjs-inline-onclick
v1.0.1
Published
Inline Onclick Button Tool for Editor.js
Downloads
7
Maintainers
Readme
Inline Onclick
Handle custom button onclick for Editor.js.
Installation
Get the package
yarn add @davidyappeter/editorjs-inline-onclickInclude module at your application
import InlineOnclick from "@davidyappeter/editorjs-inline-onclick";Usage
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
inline_onclick: InlineOnclick,
}
...
});Config Params
| Config Param | Type | Description |
| -------------- | ---------------------------------------- | --------------------------------------------------------------------------------- |
| icon | string \| nullable | String Icon for the inline button, SVG string is possible (Default Icon is '⚙️') |
| onButtonClick | function(): void | Handle on button click |
