Sha256: 59dca83943c45a05ab13bdb91e084e6aa3c120b4b9ab3ab6dd0b86ff80fd2e82

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 KB

Contents

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

/**
 * @fileSave plugin.
 */


(function()
{
	var saveCmd =
	{
		modes : { wysiwyg:1, source:1 },
		readOnly : 1,

		exec : function( editor )
		{
			var $form = editor.element.$.form;

			if ( $form )
			{
				try
				{
					$form.submit();
				}
				catch( e )
				{
					// If there's a button named "submit" then the form.submit
					// function is masked and can't be called in IE/FF, so we
					// call the click() method of that button.
					if ( $form.submit.click )
						$form.submit.click();
				}
			}
		}
	};

	var pluginName = 'save';

	// Register a plugin named "save".
	CKEDITOR.plugins.add( pluginName,
	{
		init : function( editor )
		{
			var command = editor.addCommand( pluginName, saveCmd );
			command.modes = { wysiwyg : !!( editor.element.$.form ) };

			editor.ui.addButton( 'Save',
				{
					label : editor.lang.save,
					command : pluginName
				});
		}
	});
})();
;FI"
_version;F"%4a7c086aea72d2c55e84756e3d7bd46c:@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/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245
quic_cms-0.1.3 test/dummy/tmp/cache/assets/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245
quic_cms-0.1.2 test/dummy/tmp/cache/assets/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245
quic_cms-0.1.1 test/dummy/tmp/cache/assets/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245
quic_cms-0.1.0 test/dummy/tmp/cache/assets/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245
quic_cms-0.0.9 test/dummy/tmp/cache/assets/CDF/560/sprockets%2F8e106e27b03a69d93685c2aee1a66245