Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

onehippo/ckeditor-youtube-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Plugin for CKEditor 4

Copyright © 2013 Jonnas Fonini contato@fonini.net.

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.

Installation

With NPM

  1. npm install ckeditor-youtube-plugin

  2. Add the plugin to CKEditor:

    CKEDITOR.plugins.addExternal('youtube', '/.../ckeditor-youtube-plugin/youtube/');
    

Manual

Follow these steps:

  1. Download the latest version of the plugin from Github.

  2. Extract the downloaded file into the CKEditor's plugins folder.

  3. Enable the plugin by changing or adding the extraPlugins line in your configuration (config.js):

    config.extraPlugins = 'youtube';
    
  4. Add the icon to the toolbar. The below code is just an example.

    config.toolbar = [      
        ...
        { name: 'others', items: [ 'Youtube' ] },       
    ];
    

Configuration

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;

How to use

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.

Translators

Thanks to those who helped translate the plugin

  • Eyed Farra (ar)
  • Lukáš Říha (cs)
  • 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)
  • MinSoo Kim (ko)
  • Holger Lockertsen (nb, nn)
  • Patrick van Lier (nl)
  • Michał Zalewski, Wirek (pl)
  • Samuel Diogo (pt-br)
  • Alexander Ustimenko (ru)
  • ivanbarlog (sk)
  • Çağdaş Yiğit (tr)
  • Vu Thao (vi)
  • trowa (zh)

Licensed under the WTFPL

Packages

No packages published

Languages

  • JavaScript 100.0%