Font size inline tool for the Editor.js.
Get the package
yarn add editorjs-inline-font-size-tool
Include module in your application
const FontSize = require('editorjs-inline-font-size-tool');
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
fontSize: FontSize,
config: {
fontSizeList: [
{ label: '10', value: '1', class: 'fs-1' },
{ label: '13', value: '2', class: 'fs-2' },
],
},
}
...
});