2.5.0 • Published 6 months ago

@editorjs/raw v2.5.0

Weekly downloads
2,661
License
MIT
Repository
github
Last release
6 months ago

npm.io

Raw HTML Tool for Editor.js

Raw Tool for the Editor.js allows to include raw HTML code in your articles.

npm.io

Installation

Get the package

yarn add @editorjs/raw

Include module at your application

import RawTool from '@editorjs/raw';

Optionally, you can load this tool from CDN JsDelivr CDN

Usage

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

var editor = CodexEditor({
  ...
  
  tools: {
    ...
    raw: RawTool,
  }
  
  ...
});

Config Params

FieldTypeDescription
placeholderstringRaw Tool's placeholder string

Output data

This Tool returns raw HTML code.

{
    "type" : "raw",
    "data" : {
        "html": "<div style=\"background: #000; color: #fff; font-size: 30px; padding: 50px;\">Any HTML code</div>",
    }
}
2.5.0

6 months ago

2.4.0

1 year ago

2.3.1

2 years ago

2.3.0

3 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago