Font size inline tool for the Editor.js.
Get the package
npm i --save-dev custom-editorjs-inline-font-size-tool
or
yarn add custom-editorjs-inline-font-size-tool --dev
Include module in your application
const FontSizeTool = require('custom-editorjs-inline-font-size-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: {
...
fontSize: {
class: FontSizeTool,
config: {
fontSizeList: ['10', '12', '14', '16', '18', '20', '24', '28', '32'],
}
}
}
...
});