Skip to content

sanchesfree/editorjs-video-from-list

 
 

Repository files navigation

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

About

Simple Image Tool for Editor.js 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.7%
  • CSS 8.3%