Provides VideoFromListTool Blocks for the Editor.js.
Include module at your application
const VideoFromListTool = require('@editorjs/videoFromList');
- Upload folder
dist
from repository - Add
dist/bundle.js
file to your page.
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
videoFromList: VideoFromListTool,
}
...
});
This Tool has no config params
Field | Type | Description |
---|---|---|
url | string |
image's url |
caption | string |
image's caption |
id | string |
id from list |
{
"type" : "image",
"data" : {
"url" : "https://www.tesla.com/tesla_theme/assets/img/_vehicle_redesign/roadster_and_semi/roadster/hero.jpg",
"caption" : "Roadster // tesla.com",
"id" : "140"
}
}