@sotaproject/strikethrough

1.0.1 • Public • Published

strikethrough text Tool

Inline tool for strikethrough text fragments for the Editor.js

Installation

Install via NPM

Get the package

npm i --save @sotaproject/strikethrough
yarn add @sotaproject/strikethrough

Include module at your application

import Strikethrough from '@sotaproject/strikethrough';

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Usage

Add a new Tool to the tools property of the Editor.js initial config.

import EditorJs from '@editorjs/editorjs';
import Strikethrough from '@editorjs/strikethrough';

var editor = new EditorJS({
  // ...
  tools: {
    // ...
      strikethrough: Strikethrough
  },
});

Config Params

This Tool has no config params

Output data

Strikethrough text will be wrapped with a s tag with an cdx-strikethrough class.

{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <s class=\"cdx-strikethroughs\">npm init</s> command."
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3,127
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3,127
  • 1.0.0
    0

Package Sidebar

Install

npm i @sotaproject/strikethrough

Weekly Downloads

2,566

Version

1.0.1

License

MIT

Unpacked Size

260 kB

Total Files

9

Last publish

Collaborators

  • sijokun