Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Inline tool to change font size for Editor.js

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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' },
      ],
    },
  }
  ...
});

Keywords

codex editor

FAQs

Package last updated on 04 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.