Skip to content

tanmer/editorjs-inline_strikeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strikeout Tool

Inline tool for strikeout text fragments for the Editor.js

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 InlineStrikeout from 'editorjs-inline_strikeout';

var editor = new EditorJS({
  // ...
  tools: {
    // ...
    strikeout: InlineStrikeout
  },
});

Config Params

This Tool has no config params

Output data

Underlined text will be wrapped with a strikeout tag with an cdx-del class.

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published