Inline tool to change font family for Editor.js
npm install editorjs-inline-font-family-tool
Get the package
``shell`
npm i --save-dev editorjs-inline-font-family-tool`
orshell`
yarn add editorjs-inline-font-family-tool --dev
Include module in your application
`javascript`
const FontFamily = require('editorjs-inline-font-family-tool');
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.`javascript
var editor = EditorJS({
...
tools: {
...
fontFamily: FontFamily
}
...
});
``