0.1.7 • Published 4 years ago
@groupher/editor-collapse v0.1.7
Collapse Tool for Editor.js
Collapse Tool for the Editor.js.

Installation
Install via NPM
Get the package
npm i --save-dev @groupher/editor-collapseInclude module at your application
const Collapse = require('@groupher/editor-collapse');Download to your project's source dir
- Upload folder
distfrom repository - Add
dist/bundle.jsfile 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: "",
}
}