Sha256: 1dd14ef844860343e7d24e57cdbfdc78d334f07708d1ee2a14359c7d5739c0ff

Contents?: true

Size: 1.53 KB

Versions: 55

Compression:

Stored size: 1.53 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( 'embed', function( editor )
		{
			return {
				title : editor.lang.embed.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 html.
					this.getParentEditor().insertHtml( text );
				},

				contents :
				[
					{
						label : editor.lang.common.generalTab,
						id : 'general',
						elements :
						[
							{
								type : 'html',
								id : 'pasteMsg',
								html : '<div style="white-space:normal;width:340px;">' + editor.lang.embed.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

55 entries across 55 versions & 4 rubygems

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