A CKEditor plugin allowing to embed html code snippet in an editor instance, using a convenient button
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
README.markdown
plugin.js

README.markdown

ckMediaEmbed plugin for CKEditor

This CKEditor plugin will add a supplementary button in the editor toolbar, opening a dialog popup where you'll be able to paste in any snippet of HTML code, for exemple Youtube video embed code.

ckMediaEmbed plugin in action

Installation

Get the source archive and uncompress it into the plugins folder of your CKEditor installation.

Usage

Enable the plugin adding this setting to your CKEditor config.js file:

config.extraPlugins = 'MediaEmbed';

Enable the button by adding it to your editor's toolbar configuration:

CKEditor.replace('id_of_textarea', {
  toolbar: 'Blah',
  toolbar_Blah: [
    ['Image', 'Flash', 'MediaEmbed']
  ]
});

Credits

This plugin code is based on the work of Kent Safranski.