Sha256: 95c8a060168f65749ae74d2f3a0ad0971893ce77100ed461386aa9747ecd3414

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 KB

Contents

/*
Copyright (c) 2003-2012, 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

7 entries across 7 versions & 4 rubygems

Version Path
rich-1.3.1 vendor/assets/ckeditor/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
rich-1.3.0 vendor/assets/ckeditor/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
rich-1.2.0 vendor/assets/ckeditor/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
ckeditor-rails-0.0.5 vendor/assets/ckeditor/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
refinerycms-ckeditor-0.2.0 app/assets/javascripts/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
rich-1.1.0 vendor/assets/ckeditor/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js
radiant-ck_editor_filter-extension-0.2.6 public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js