Sha256: b6233a3011e7f10148dd7a65f2db6b79cced836fdfb91e59842e63182dfc76c0

Contents?: true

Size: 1.53 KB

Versions: 47

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

47 entries across 47 versions & 7 rubygems

Version Path
forge-cli-0.1.1 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.1.0 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.18 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.17 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.16 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.15 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.14 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.13 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.12 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.11 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.10 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.9 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.8 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.7 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
forge-cli-0.0.6 lib/forge/public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
inline_forms-0.9.25 public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
inline_forms-0.9.24 public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
inline_forms-0.9.23 public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
inline_forms-0.9.22 public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
inline_forms-0.9.21 public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js