Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collapse Tool for Editor.js

Collapse Tool for the Editor.js.

collapse-demo

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

  1. Upload folder dist from repository
  2. 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: "",
    }
}

About

collapse tool for editor.js

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages