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