Sha256: e25107c7a0e662cf15ce79217e5cd2288318a770fc4f044eb97ba0e08f202640

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

/*
*
*   Plugin developed by Dimitri Conejo
*   www.dimitriconejo.com
*
*/

CKEDITOR.plugins.add( 'videodetector', {
    icons: 'videodetector',
    init: function( editor ) {

        var pluginDirectory = this.path;
        editor.addContentsCss(pluginDirectory + 'videodetector.css');

        editor.addCommand('videodetector', new CKEDITOR.dialogCommand('videoDialog'));
        editor.ui.addButton( 'VideoDetector', {
            label: 'Insert a Youtube, Vimeo or Dailymotion video',
            command: 'videodetector',
            icon: CKEDITOR.plugins.getPath('videodetector') + 'icons/icon_black.png'
        });

        CKEDITOR.dialog.add('videoDialog', this.path + 'dialogs/videoDialog.js');

    }
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin_ui_layout_taris-1.4.0 app/assets/javascripts/ckeditor/plugins/videodetector/plugin.js
rails_admin_ui_layout_taris-1.3.9 app/assets/javascripts/ckeditor/plugins/videodetector/plugin.js
rails_admin_ui_layout_taris-1.3.8 app/assets/javascripts/ckeditor/plugins/videodetector/plugin.js