Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 547 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 547 Bytes

Button Tool

Button tool to create a Button link for the Editor.js.

Installation

Usage

Add a new Tool to the tools property of the Editor.js initial config.

var editor = EditorJS({
  ...
  
  tools: {
    ...
    button: {
      class: Button,
    },
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

{
    "type" : "button",
    "data" : {
      "url": "https://yoururl.com",
      "label": "Button Label",
      "targetBlank": true
    }
}