1.0.3 • Published 2 years ago

@7polo/editorjs-link v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Link

Link Tool for Editor.js 2.0

show link page by using iframe

drag to modify the block height

Usage

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

  1. npm
npm i @7polo/editorjs-link
  1. init & config
var editor = EditorJS({
  ...
  tools: {
    ...
    link: Link
  }
  ...
});

Output data

This Tool returns code.

{
  "type" : "link",
  "data" : {
    "url" : "https://www.example.com/image.jpg",
    "meta": {
      "height":  200
    }
  }
}