editorjs-inline-color

0.0.2 • Public • Published

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

  1. clone this repo
  2. npm install
  3. npm run dev

/editorjs-inline-color/

    Package Sidebar

    Install

    npm i editorjs-inline-color

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    34.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • eksx