@groupher/editor-warning
v1.0.15
Published
warning Tool for Editor.js
Downloads
5
Maintainers
Readme
Warning Tool
Provides Code Blocks for the Editor.js.
Installation
Install via NPM
Get the package
npm i --save-dev @groupher/editor-warning
Include module at your application
const Warning = require('@groupher/editor-warning');
Download to your project's source dir
- Upload folder
dist
from repository - Add
dist/bundle.js
file to your page.
Usage
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
warning: Warning,
},
...
});
Output data
| Field | Type | Description |
| --------- | -------- | -------------------- |
| title | string
| warning title |
| desc | string
| warning desc |
{
"type" : "quote",
"data" : {
"title" : ""note",
"desc" : "this is a warning"
}
}