1.0.15 • Published 10 months ago

custom-editorjs-inline-font-size-tool v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

npm.io

Font Size tool

Font size inline tool for the Editor.js.

Installation

Install via NPM or Yarn

Get the package

npm i --save-dev custom-editorjs-inline-font-size-tool

or

yarn add custom-editorjs-inline-font-size-tool --dev

Include module in your application

const FontSizeTool = require('custom-editorjs-inline-font-size-tool');

Upload to your project's source dir

  1. Download folder dist from repository
  2. Add dist/bundle.js file to your page.

Usage

Add a new Tool to the tools property of the Editor.js initial config.

var editor = EditorJS({
  ...
  
  tools: {
    ...
    fontSize: {
      class: FontSizeTool,
      config: {
        fontSizeList: ['10', '12', '14', '16', '18', '20', '24', '28', '32'],
      }
    }
  }
  ...
});
1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago