Provides Code Blocks for the Editor.js.
Get the package
npm i --save-dev @groupher/editor-alertInclude module at your application
const Alert = require('@groupher/editor-alert');- Upload folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
alert: Alert,
},
...
});| Field | Type | Description |
|---|---|---|
| title | string |
warning title |
| desc | string |
warning desc |
| alert | string |
alert type |
{
"type" : "quote",
"data" : {
"title" : ""note",
"desc" : "this is a warning",
"type" : "warning"
}
}