editorjs-inline-color
v0.0.2
Published
Color Tool for Editor.js
Downloads
56
Maintainers
Readme
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-color
Include 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