1.0.15 • Published 1 year ago
custom-editorjs-inline-font-size-tool v1.0.15
Font Size tool
Font size inline tool for the Editor.js.
Installation
Install via NPM or Yarn
Get the package
npm i --save-dev custom-editorjs-inline-font-size-toolor
yarn add custom-editorjs-inline-font-size-tool --devInclude module in your application
const FontSizeTool = require('custom-editorjs-inline-font-size-tool');Upload to your project's source dir
- Download folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Usage
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'],
}
}
}
...
});