Youtube Plugin
This plugin allows inserting Youtube videos using embed code or just the video URL.
InstallationFollow these steps:
- 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';Configuration
You can also change the default plugin options on config.js:
Video width:
config.youtube_width = '640';
Video height:
config.youtube_height = '480';
Make responsive (ignore width and height, fit to width):
config.youtube_responsive = true;
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;
Show player controls:
config.youtube_controls = true;
Disable the change of settings. The elements on the list will be disabled (but still visible). See the available element list below.
config.youtube_disabled_fields = ['txtEmbed', 'chkAutoplay'];
List of UI elements:
- txtEmbed
- txtUrl
- txtWidth
- txtHeight
- chkResponsive
- chkNoEmbed
- chkRelated
- chkOlderCode
- chkPrivacy
- chkAutoplay
- txtStartAt
- chkControls
Releases
Plugin versions | CKEditor versions | |||
---|---|---|---|---|
4.9 | 4.8 | 4.7 | ||
Version: 2.1.10 |
||||
- Fix hungarian translation. |
||||
Version: 2.1.8 |
||||
- new Youtube icon |
||||
Version: 2.1.5 |
||||
Allow disable the change of settings. |
||||
Version: 2.0.9 |
||||
- CS Translation. Thanks to Lukáš Říha. |
||||
Version: 2.0.4 |
||||
- Added Finnish translation. Thanks to Jami Pietilä. |
||||
Version: 1.0.10 |
||||
- Fixed encoding |
||||
Version: 1.0.7 |
||||
Added German translation. Thanks to Sven Jansen. |
||||
Version: 1.0 |
||||
- New Japanese locale. Thanks to nyayoshi |