This plugin allows inserting Youtube videos using embed code or just the video URL in CKEditor 4. The plugin is NOT compatible with CKEditor 5. If you need to embed Youtube videos in a CKEditor 5 enabled text format, consider using the media library functionality provided by Drupal core. CKEditor 4 is reaching its end-of-life in 2023! It is recommended to make the switch before CKEditor 4 becomes unsupported.

Note that the limitation is with the JavaScript library itself. There is no version compatible with CKEditor 5. See:

* https://ckeditor.com/cke4/addon/youtube
* https://github.com/fonini/ckeditor-youtube-plugin
* https://www.drupal.org/project/ckeditor

Installation

See project's README file for instruction on installing with Composer or manually.

Reference folder structure

.
|-- autoload.php
|-- core
|-- index.php
|-- libraries
|   `-- youtube
|       `-- youtube
|           |-- images
|           |-- lang
|           `-- plugin.js
|-- modules
|   `-- contrib
|       |-- ckeditor_youtube
|       |   |-- ckeditor_youtube.info.yml
|       |   |-- ...
|       |   `-- src
|-- profiles
|-- robots.txt
|-- sites
|-- themes
|-- update.php
`-- web.config

Usage

Go to the Text formats and editors settings (/admin/config/content/formats) and
add the YouTube Button to any CKEditor-enabled text format you want.

Credits

Initial development and maintenance by Agaric.

Supporting organizations: 
Sponsored development
Supports continuing development and maintenance.

Project information

Releases