ckeditor5-youtube-embed

1.1.2 • Public • Published

Youtube embed plugin

Simple plugin for creating a Youtube embed.

Initialize

Import the plugin

import Youtube from 'ckeditor5-youtube-embed/youtube'

Include the plugin

Editor.builtinPlugins = [
    Youtube
]

Add the button to the toolbar

Editor.defaultConfig = {
    toolbar: {
        items: [
            'youtube'
        ]
    }
}

Usage

  • Click on the Youtube embed button in the toolbar
  • Enter the Youtube URL in the prompt
  • The element is created

Structure

The plugin will add the element as shown below

<div class="youtube-embed">
    <iframe src="https://www.youtube.com/embed/id"></iframe>
</div>

Package Sidebar

Install

npm i ckeditor5-youtube-embed

Weekly Downloads

16

Version

1.1.2

License

ISC

Unpacked Size

8.28 kB

Total Files

7

Last publish

Collaborators

  • fishionaire