@softkit/editorjs-inline-font-size-tool

1.0.1 • Public • Published

Font Size tool

Font size inline tool for the Editor.js.

Installation

Install via NPM or Yarn

Get the package

yarn add editorjs-inline-font-size-tool

Include module in your application

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

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    fontSize: FontSize,
    config: {
      fontSizeList: [
        { label: '10', value: '1', class: 'fs-1' },
        { label: '13', value: '2', class: 'fs-2' },
      ],
    },
  }
  ...
});

/@softkit/editorjs-inline-font-size-tool/

    Package Sidebar

    Install

    npm i @softkit/editorjs-inline-font-size-tool

    Weekly Downloads

    36

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.34 MB

    Total Files

    15

    Last publish

    Collaborators

    • vsamofal