JSPM

editorjs-inline-font-tool

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30793F
  • License MIT

Inline tool to change font family for Editor.js

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (editorjs-inline-font-tool) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Font Family tool

    Font family inline tool for the Editor.js.

    Installation

    Install via NPM or Yarn

    Get the package

    npm i --save-dev editorjs-inline-font-family-tool

    or

    yarn add editorjs-inline-font-family-tool --dev

    Include module in your application

    const FontFamily = require('editorjs-inline-font-family-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: {
        ...
        fontFamily: FontFamily
      }
      ...
    });