Sha256: 5b8d77a47d6fa08c0843cfa107a9bae9e5e87c89f7ef5fe4a1ca7fd047c69d7c

Contents?: true

Size: 923 Bytes

Versions: 55

Compression:

Stored size: 923 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 attachmentCmd =
	{
		exec : function( editor )
		{
		  editor.openDialog( 'attachment' );
		  return;
		}
	};

	// Register the plugin.
	CKEDITOR.plugins.add( 'attachment',
	{
	  lang : [ 'en', 'ru', 'uk' ],
	  requires : [ 'dialog' ],

		init : function( editor )
		{
			var commandName = 'attachment';
			editor.addCommand( commandName, attachmentCmd );

			editor.ui.addButton( 'Attachment',
				{
					label : editor.lang.attachment.button,
					command : commandName,
					icon: this.path + "images/attachment.png"
				});

			CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/attachment.js' ) );
		}
	});

})();

Version data entries

55 entries across 55 versions & 4 rubygems

Version Path
blog_logic-1.4.2 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
editorial_logic-1.4.2 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
site_logic-1.9.4 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
site_logic-1.9.3 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.4.1 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
ppc_logic-0.8.0 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
editorial_logic-1.4.1 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.4.0 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
editorial_logic-1.4.0 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.3.1 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.3.0 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.2.4 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
site_logic-1.9.2 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.2.3 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.2.2 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.2.1 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
editorial_logic-1.3.3 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
site_logic-1.9.1 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.2.0 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js
blog_logic-1.1.9 public/javascripts/ckeditor/_source/plugins/attachment/plugin.js