JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.6.1
[ckeditor.git] / _source / core / ui.js
index 27f226f..005dc13 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -71,6 +71,9 @@ CKEDITOR.ui.prototype =
 \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