Sha256: 82f18b7b075aad501023476098136b6ba74b593d5b7689d53f7e41ba50ebb1f1
Contents?: true
Size: 879 Bytes
Versions: 110
Compression:
Stored size: 879 Bytes
Contents
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Paste as plain text plugin */ (function() { // The pastetext command definition. var embedCmd = { exec : function( editor ) { editor.openDialog( 'embed' ); return; } }; // Register the plugin. CKEDITOR.plugins.add( 'embed', { lang : [ 'en', 'ru', 'uk' ], requires : [ 'dialog' ], init : function( editor ) { var commandName = 'embed'; editor.addCommand( commandName, embedCmd ); editor.ui.addButton( 'Embed', { label : editor.lang.embed.button, command : commandName, icon: this.path + "images/embed.png" }); CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/embed.js' ) ); } }); })();
Version data entries
110 entries across 55 versions & 4 rubygems