@groupher/editor-column

0.1.1 • Public • Published

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: "",
    }
}

/@groupher/editor-column/

    Package Sidebar

    Install

    npm i @groupher/editor-column

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    136 kB

    Total Files

    35

    Last publish

    Collaborators

    • mydearxym