DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/umedia3/js/ckeditor/_source/plugins/panelbutton/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/umedia3/js/ckeditor/_source/plugins/panelbutton/plugin.js
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.plugins.add( 'panelbutton',
{
	requires : [ 'button' ],
	beforeInit : function( editor )
	{
		editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler );
	}
});

/**
 * Button UI element.
 * @constant
 * @example
 */
CKEDITOR.UI_PANELBUTTON = 4;

(function()
{
	var clickFn = function( editor )
	{
		var _ = this._;

		if ( _.state == CKEDITOR.TRISTATE_DISABLED )
			return;

		this.createPanel( editor );

		if ( _.on )
		{
			_.panel.hide();
			return;
		}

		_.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 );
	};


	CKEDITOR.ui.panelButton = CKEDITOR.tools.createClass(
	{
		base : CKEDITOR.ui.button,

		$ : function( definition )
		{
			// We don't want the panel definition in this object.
			var panelDefinition = definition.panel;
			delete definition.panel;

			this.base( definition );

			this.document = ( panelDefinition
								&& panelDefinition.parent
								&& panelDefinition.parent.getDocument() )
							|| CKEDITOR.document;

			this.hasArrow = true;

			this.click = clickFn;

			this._ =
			{
				panelDefinition : panelDefinition
			};
		},

		statics :
		{
			handler :
			{
				create : function( definition )
				{
					return new CKEDITOR.ui.panelButton( definition );
				}
			}
		},

		proto :
		{
			createPanel : function( editor )
			{
				var _ = this._;

				if ( _.panel )
					return;

				var panelDefinition = this._.panelDefinition || {},
					panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(),
					panel = this._.panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ),
					me = this;

				panel.onShow = function()
					{
						if ( me.className )
							this.element.getFirst().addClass( me.className + '_panel' );

						_.oldState = me._.state;
						me.setState( CKEDITOR.TRISTATE_ON );

						_.on = 1;

						if ( me.onOpen )
							me.onOpen();
					};

				panel.onHide = function()
					{
						if ( me.className )
							this.element.getFirst().removeClass( me.className + '_panel' );

						me.setState( _.oldState );

						_.on = 0;

						if ( me.onClose )
							me.onClose();
					};

				panel.onEscape = function()
					{
						panel.hide();
						me.document.getById( _.id ).focus();
					};

				if ( this.onBlock )
					this.onBlock( panel, _.id );

				panel.getBlock( _.id ).onHide = function()
						{
								_.on = 0;
								me.setState( CKEDITOR.TRISTATE_OFF );
						};
			}
		}
	});

})();

Anon7 - 2022
AnonSec Team