Sha256: d20156e7572e573892a50469333c3581ce8a8bb122302a6e4f5fe238a0b80220

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 KB

Contents

o: ActiveSupport::Cache::Entry	:@created_atf1321037621.0308568:@value{	I"length:EFiI"digest;F"%89af2dc6530ef7d9b5c0ad0ac1c3fe61I"source;FI"/*
 * Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */


(function()
{
	function placeholderDialog( editor, isEdit )
	{

		var lang = editor.lang.placeholder,
			generalLabel = editor.lang.common.generalTab;
		return {
			title : lang.title,
			minWidth : 300,
			minHeight : 80,
			contents :
			[
				{
					id : 'info',
					label : generalLabel,
					title : generalLabel,
					elements :
					[
						{
							id : 'text',
							type : 'text',
							style : 'width: 100%;',
							label : lang.text,
							'default' : '',
							required : true,
							validate : CKEDITOR.dialog.validate.notEmpty( lang.textMissing ),
							setup : function( element )
							{
								if ( isEdit )
									this.setValue( element.getText().slice( 2, -2 ) );
							},
							commit : function( element )
							{
								var text = '[[' + this.getValue() + ']]';
								// The placeholder must be recreated.
								CKEDITOR.plugins.placeholder.createPlaceholder( editor, element, text );
							}
						}
					]
				}
			],
			onShow : function()
			{
				if ( isEdit )
					this._element = CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor );

				this.setupContent( this._element );
			},
			onOk : function()
			{
				this.commitContent( this._element );
				delete this._element;
			}
		};
	}

	CKEDITOR.dialog.add( 'createplaceholder', function( editor )
		{
			return placeholderDialog( editor );
		});
	CKEDITOR.dialog.add( 'editplaceholder', function( editor )
		{
			return placeholderDialog( editor, 1 );
		});
} )();
;FI"
_version;F"%c9bfea9331278932e5ebe17d8304708a:@expires_in0:@compressedF

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quic_cms-0.1.4 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84
quic_cms-0.1.3 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84
quic_cms-0.1.2 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84
quic_cms-0.1.1 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84
quic_cms-0.1.0 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84
quic_cms-0.0.9 test/dummy/tmp/cache/assets/C95/090/sprockets%2F94430d478572f5056553cc7a4ce98f84