X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fui.js;h=b569d8a245b8b8815fb459ce421d11d845d60283;hb=4e70ea24db840898be8cc21c950363a52a2a6aba;hp=0a66c2ed7a31afe5fbedda3d99373548afdb499f;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/ui.js b/_source/core/ui.js index 0a66c2e..b569d8a 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-2011, 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 + */