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

Version Path
editorial_logic-1.1.5 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
editorial_logic-1.1.5 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
site_logic-1.6.9 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
site_logic-1.6.9 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
blog_logic-0.7.6 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
blog_logic-0.7.6 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
blog_logic-0.7.5 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
blog_logic-0.7.5 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
blog_logic-0.7.4 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
blog_logic-0.7.4 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
blog_logic-0.7.3 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
blog_logic-0.7.3 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
blog_logic-0.7.2 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
blog_logic-0.7.2 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
editorial_logic-1.1.4 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
editorial_logic-1.1.4 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
site_logic-1.6.8 public/javascripts/ckeditor/_source/plugins/embed/plugin.js
site_logic-1.6.8 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
editorial_logic-1.1.3 public/javascripts/ckeditor/_source/plugins/ajax_save/plugin.js
editorial_logic-1.1.3 public/javascripts/ckeditor/_source/plugins/embed/plugin.js