Iframe Tool for Editor.js
npm install @hammaadhrasheedh/editorjs-iframe
Provides iframe support for the Editor.js.
Works only with pasted iframe tags and requires no server-side setup.

Get the package
``shell`
npm i --save-dev @hammaadhrasheedh/editorjs-iframe
Include module at your application
`javascript`
const Iframe = require('@hammaadhrasheedh/editorjs-iframe');
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
Then require this script on page with Editor.js.
`html`
Add a new Tool to the tools property of the Editor.js initial config.
`javascript`
var editor = EditorJS({
...
tools: {
...
iframe: Iframe,
}
...
});
This Tool has no config params

1. Left align
2. Center align
3. Right align
| Field | Type | Description |
| -------------- | --------- | ------------------------------- |
| frame | string | iframe |string
| alignment | | alignment of iframe |
`json``
{
"type" : "image",
"data" : {
"frame" : "",
"alignment" : "Centered",
}
}