1.0.3 • Published 3 years ago
editorjs-youtube-embed-extended v1.0.3
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-embedInclude module at your application
const YoutubeEmbed = require('editorjs-youtube-embed');Download to your project's source dir
- Download folder
distfrom repository - Add
dist/main.jsfile 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"
}
}