Skip to content

7polo/editorjs-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    }
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published