Inline tool for underlining text fragments
npm install @editorjs/underline

Get the package
``shell`
npm i --save @editorjs/underline
`shell`
yarn add @editorjs/underline
Include module at your application
`javascript`
import Underline from '@editorjs/underline';
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
You can load the package from jsDelivr CDN and require the script on a page with Editor.js.
`html`
Add a new Tool to the tools property of the Editor.js initial config.
`javascript
import EditorJs from '@editorjs/editorjs';
import Underline from '@editorjs/underline';
var editor = new EditorJS({
// ...
tools: {
// ...
underline: Underline
},
});
`
This Tool has no config params
Underlined text will be wrapped with a u tag with an cdx-underline class.
`json``
{
"type" : "text",
"data" : {
"text" : "Create a directory for your module, enter it and run npm init command."
}
}