Font family inline tool for the Editor.js.
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');
- Download folder
dist
from repository - Add
dist/bundle.js
file to your page.
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
fontFamily: FontFamily
}
...
});