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