Skip to content

kostya1000/editorjs-youtube-embed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Embed Tool

An Editor.js plugin to embed YouTube Video.

Simply copy and paste YouTube video URL to embed.

Installation

Install via NPM

Get the package

npm i editorjs-youtube-embed

Include module at your application

const YoutubeEmbed = require('editorjs-youtube-embed');

Download to your project's source dir

  1. Download folder dist from repository
  2. Add dist/main.js file to your page.

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    youtubeEmbed: YoutubeEmbed,
  }
  
  ...
});

Config Params

This tool has no config params

Output data

Field Type Description
url string video url
{
    "type": "youtubeEmbed",
    "data": {
        "url": "https://www.youtube.com/watch?v=L229QDxDakU"
    }
}

About

Youtube video embed tool for Editor.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.4%
  • CSS 11.6%