Giter Site home page Giter Site logo

mgarin / ckeditor-youtube-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fonini/ckeditor-youtube-plugin

0.0 1.0 1.0 151 KB

CKEditor Plugin which allows to embed Youtube videos.

Home Page: http://www.fonini.net/blog/youtube-plugin-for-ckeditor-4

License: Do What The F*ck You Want To Public License

JavaScript 100.00%

ckeditor-youtube-plugin's Introduction

Youtube Plugin for CKEditor 4

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.

Installation

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)
  • Sven Jansen (de)
  • Dimitris Kotsakis (el)
  • Victor (pollin14) (es)
  • 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)
  • Çağdaş Yiğit (tr)
  • Vu Thao (vi)
  • trowa (zh)

Licensed under the WTFPL

ckeditor-youtube-plugin's People

Contributors

andythorne avatar carmachy avatar dkltd avatar fonini avatar gan068 avatar garex avatar georgegardiner avatar mgarin avatar pixeljunkie avatar pollin14 avatar putnik avatar vuthao avatar zrichard avatar

Watchers

 avatar

Forkers

enterstudio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.