X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fui.js;h=085815c01b2106512f560f4f3d48057a26eb08ac;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=0a66c2ed7a31afe5fbedda3d99373548afdb499f;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/ui.js b/_source/core/ui.js index 0a66c2e..085815c 100644 --- a/_source/core/ui.js +++ b/_source/core/ui.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -71,6 +71,9 @@ CKEDITOR.ui.prototype = var result = handler && handler.create.apply( this, item.args ); + // Allow overrides from skin ui definitions.. + item && ( result = CKEDITOR.tools.extend( result, this._.editor.skin[ item.type ], true ) ); + // Add reference inside command object. if ( command ) command.uiItems.push( result ); @@ -91,6 +94,8 @@ CKEDITOR.ui.prototype = } }; +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 @@ -114,3 +119,10 @@ CKEDITOR.ui.prototype = * } * }); */ + +/** + * Internal event fired when a new UI element is ready + * @name CKEDITOR.ui#ready + * @event + * @param {Object} element The new element + */