Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.23 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.23 KB

VideoFromListTool

Provides VideoFromListTool Blocks for the Editor.js.

Installation

Install via NPM

Include module at your application

const VideoFromListTool = require('@editorjs/videoFromList');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    videoFromList: VideoFromListTool,
  }
  
  ...
});

Config Params

This Tool has no config params

Output data

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