/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
var result = handler && handler.create.apply( this, item.args );\r
\r
+ // Allow overrides from skin ui definitions..\r
+ item && ( result = CKEDITOR.tools.extend( result, this._.editor.skin[ item.type ], true ) );\r
+\r
// Add reference inside command object.\r
if ( command )\r
command.uiItems.push( result );\r
* }\r
* });\r
*/\r
+\r
+/**\r
+ * Internal event fired when a new UI element is ready\r
+ * @name CKEDITOR.ui#ready\r
+ * @event\r
+ * @param {Object} element The new element\r
+ */\r