1.0.4 • Published 5 years ago
editorjs-inline-font-family-tool v1.0.4
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-toolor
yarn add editorjs-inline-font-family-tool --devInclude module in your application
const FontFamily = require('editorjs-inline-font-family-tool');Upload to your project's source dir
- Download folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Usage
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
fontFamily: FontFamily
}
...
});