Delimiter Tool for the Editor.js.
Get the package
npm i --save-dev @editorjs/delimiterInclude module at your application
const Delimiter = require('@editorjs/delimiter');- Upload folder
distfrom repository - Add
dist/bundle.jsfile to your page.
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/@editorjs/[email protected]
Require this script on a page with Editor.js.
<script src="..."></script>Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
delimiter: Delimiter,
}
...
});This Tool has no config params
This Tool returns empty object.
{
"type" : "delimiter",
"data" : {}
}