@7polo/editorjs-link
v1.0.3
Published
Link Tool for Editor.js
Downloads
14
Maintainers
Readme
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.
- npm
npm i @7polo/editorjs-link
- 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
}
}
}