@editorjs/marker

1.4.0 • Public • Published

Marker Tool

Marker Tool for highlighting text-fragments for the Editor.js.

Installation

Get the package

yarn add @editorjs/marker

Include module at your application

import Marker from '@editorjs/marker';

Optionally, you can load this tool from CDN JsDelivr CDN

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    Marker: {
      class: Marker,
      shortcut: 'CMD+SHIFT+M',
    }
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

Marked text will be wrapped with a mark tag with an cdx-marker class.

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    8,361
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.4.0
    8,361
  • 1.3.0
    4,570
  • 1.2.2
    2,960
  • 1.2.1
    3
  • 1.2.0
    3

Package Sidebar

Install

npm i @editorjs/marker

Weekly Downloads

15,897

Version

1.4.0

License

MIT

Unpacked Size

8.24 kB

Total Files

7

Last publish

Collaborators

  • codex-team