0.0.2 • Published 4 years ago
editorjs-inline-color v0.0.2
inline-color-tool
color tool for Editor.js. this tool can change the fontColor and backgroundColor.
file in /src/color
Install via NPM
Get the package
$ npm i --save-dev editorjs-inline-colorInclude module at your application
import ColorTool from 'editorjs-inline-color';Usage
Add a new Tool to the tools property of the Editor.js initial config.
const editor = EditorJS({
  tools: {
      color: {
        class: ColorTool,
        inlineToolbar: true,
      }
  }
});preview
You can preview this plugin through the local service
steps
- clone this repo
- npm install
- npm run dev