X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fui.js;h=005dc1377d99f15750d36c34bd2295a4fb301d41;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=2fdbde983c0da883c690c2e4e68560427161a556;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_source/core/ui.js b/_source/core/ui.js index 2fdbde9..005dc13 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-2013, 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 ); @@ -116,3 +119,10 @@ CKEDITOR.event.implementOn( CKEDITOR.ui ); * } * }); */ + +/** + * Internal event fired when a new UI element is ready + * @name CKEDITOR.ui#ready + * @event + * @param {Object} element The new element + */