@groupher/editor-collapse
v0.1.7
Published
collapse Tool for Editor.js
Downloads
168
Maintainers
Readme
Collapse Tool for Editor.js
Collapse Tool for the Editor.js.
Installation
Install via NPM
Get the package
npm i --save-dev @groupher/editor-collapse
Include module at your application
const Collapse = require('@groupher/editor-collapse');
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: {
...
collapse: Collapse,
}
...
});
Config Params
This Tool has no config params
Output data
This Tool returns data object.
{
"type" : "collapse",
"data" : {
title: "",
content: "",
}
}