Sha256: a585b210b69b77e6d153a62180867b61b3616805378ac03fe4f0c9a017b741ac

Contents?: true

Size: 1.54 KB

Versions: 22

Compression:

Stored size: 1.54 KB

Contents

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

					// Inserts the text.
					this.getParentEditor().insertText( text );
				},

				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 : 'html',
								id : 'content',
								style : 'width:340px;height:170px',
								html :
									'<textarea style="' +
										'width:346px;' +
										'height:170px;' +
										'resize: none;' +
										'border:1px solid black;' +
										'background-color:white">' +
									'</textarea>',
								focus : function()
								{
									this.getElement().focus();
								}
							}
						]
					}
				]
			};
		});
})();

Version data entries

22 entries across 22 versions & 6 rubygems

Version Path
browsercms-3.3.4 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.4.0.rc2 vendor/assets/javascripts/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.4.0.rc1 vendor/assets/javascripts/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.3.3 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.5 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.4 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.3.2 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.3.1 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.3.0 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.3 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.3.0.beta public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
bcms_content_syncing-1.0.0 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
drujensen-browsercms-3.2.0 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercmsi-3.1.2 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.2 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.1 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercmsi-3.1.1 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercmsi-3.1.0 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
browsercms-3.1.0 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js
bcms_fckeditor-1.0.1 public/bcms/ckeditor/plugins/pastetext/dialogs/pastetext.js