Sha256: f875df9b26b2bb8dc78da29b8686820f1e127cb77dbd9ec00902754eeae23dff

Contents?: true

Size: 1.74 KB

Versions: 88

Compression:

Stored size: 1.74 KB

Contents

/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

(function()
{
	CKEDITOR.dialog.add( 'pastetext', function( editor )
		{
			return {
				title : editor.lang.pasteText.title,

				minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
				minHeight : 240,

				onShow : function()
				{
					// Reset the textarea value.
					this.getContentElement( 'general', 'content' ).getInputElement().setValue( '' );
				},

				onOk : function()
				{
					// Get the textarea value.
					var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue(),
						editor = this.getParentEditor();

					setTimeout( function()
					{
						editor.fire( 'paste', { 'text' : text } );
					}, 0 );
				},

				contents :
				[
					{
						label : editor.lang.common.generalTab,
						id : 'general',
						elements :
						[
							{
								type : 'html',
								id : 'pasteMsg',
								html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'
							},
							{
								type : 'textarea',
								id : 'content',
								className : 'cke_pastetext',

								onLoad : function()
								{
									var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),
										input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 );

									input.setAttribute( 'aria-labelledby', label.$.id );
									input.setStyle( 'direction', editor.config.contentsLangDirection );
								},

								focus : function()
								{
									this.getElement().focus();
								}
							}
						]
					}
				]
			};
		});
})();

Version data entries

88 entries across 88 versions & 10 rubygems

Version Path
blog_logic-0.7.3 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
blog_logic-0.7.2 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
editorial_logic-1.1.4 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
site_logic-1.6.8 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
editorial_logic-1.1.3 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
editorial_logic-1.1.2 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
site_logic-1.6.7 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
site_logic-1.6.6 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
editorial_logic-1.1.1 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
editorial_logic-1.1.0 public/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
dust-ckeditor-3.5.0 lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
hifi-ckeditor-3.5.2 lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
hifi-ckeditor-3.5.1 lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
artemk-ckeditor-3.5.5 generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
ckeditor-jess-3.4.3 generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
ckeditor-3.5.0 lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
artemk-ckeditor-3.5.4 generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
artemk-ckeditor-3.4.4 generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
artemk-ckeditor-3.4.3 generators/ckeditor_install/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
ckeditor-3.4.3.pre lib/generators/ckeditor/base/templates/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js