Sha256: a94067472cf3819e97c2c9ed7c7030fd26c7956ce12e6a6b28ca4caccca2a50f

Contents?: true

Size: 1.66 KB

Versions: 88

Compression:

Stored size: 1.66 KB

Contents

/*
Copyright (c) 2003-2011, 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(){ this.setupContent(); },
				onOk : function(){ this.commitContent(); },

				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();
								},
								setup : function()
								{
									this.setValue( '' );
								},
								commit : function()
								{
									var value = this.getValue();
									setTimeout( function()
									{
										editor.fire( 'paste', { 'text' : value } );
									}, 0 );
								}
							}
						]
					}
				]
			};
		});
})();

Version data entries

88 entries across 85 versions & 9 rubygems

Version Path
classiccms-0.7.5 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.7.4 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.7.3 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.7.2 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.7.1 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.7.0 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.9 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.8 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.7 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.6 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.5 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.4 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.3 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.2 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.1 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.6.0 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.5.17 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.5.16 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.5.15 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
classiccms-0.5.14 lib/classiccms/public/js/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js