Copyright © 2013 Jonnas Fonini [email protected].
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the LICENSE file for more details.
This plugin allow you to insert Youtube videos using embed code or just the video URL.
Follow these steps:
-
Download the latest version of the plugin from Github.
-
Extract the downloaded file into the CKEditor's plugins folder.
-
Enable the plugin by changing or adding the extraPlugins line in your configuration (config.js):
config.extraPlugins = 'youtube';
-
Add the icon to the toolbar. The below code is just an example.
config.toolbar = [ ... { name: 'others', items: [ 'Youtube' ] }, ];
The default options can be overriden on config.js.
Video width:
config.youtube_width = '640';
Video height:
config.youtube_height = '480';
Show related videos:
config.youtube_related = true;
Use old embed code:
config.youtube_older = false;
Enable privacy-enhanced mode:
config.youtube_privacy = false;
Start video automatically:
config.youtube_autoplay = false;
If everything is ok, a Youtube icon should appear on the CKEditor toolbar. Click it, paste your embed code or video URL and the video will be inserted.
Thanks to those who helped translate the plugin
- Eyed Farra (ar)
- Sven Jansen (de)
- Dimitris Kotsakis (el)
- Victor (pollin14) (es)
- Kevin Rudissaar (et)
- Jami Pietilä (fi)
- BiomanRouge (fr)
- Moshe Simantov (he)
- Karmacsi Gábor (hu)
- Francesco Zanoni (it)
- Yayoshi Nobuhide (ja)
- Holger Lockertsen (nb, nn)
- Patrick van Lier (nl)
- Michał Zalewski, Wirek (pl)
- Alexander Ustimenko (ru)
- ivanbarlog (sk)
- Çağdaş Yiğit (tr)
- Vu Thao (vi)
- trowa (zh)