Inline tool for strikethrough text fragments
npm install @sotaproject/strikethrough

Get the package
``shell`
npm i --save @sotaproject/strikethrough
`shell`
yarn add @sotaproject/strikethrough
Include module at your application
`javascript`
import Strikethrough from '@sotaproject/strikethrough';
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
[//]: # (### Load from CDN)
[//]: # ()
[//]: # (You can load the package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/underline) 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 Strikethrough from '@editorjs/strikethrough';
var editor = new EditorJS({
// ...
tools: {
// ...
strikethrough: Strikethrough
},
});
`
This Tool has no config params
Strikethrough text will be wrapped with a s tag with an cdx-strikethrough class.
`json``
{
"type" : "text",
"data" : {
"text" : "Create a directory for your module, enter it and run npm init command."
}
}