Skip to content

david-yappeter/editorjs-inline-onclick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inline Onclick

Handle custom button onclick for Editor.js.

Installation

Get the package

yarn add @davidyappeter/editorjs-inline-onclick

Include 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published