JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / button / plugin.js
index 54016fb..a882a39 100644 (file)
@@ -172,7 +172,7 @@ CKEDITOR.ui.button.prototype =
                }\r
 \r
                output.push(\r
-                                       '></span>' +\r
+                                       '>&nbsp;</span>' +\r
                                        '<span id="', id, '_label" class="cke_label">', this.label, '</span>' );\r
 \r
                if ( this.hasArrow )\r
@@ -180,7 +180,7 @@ CKEDITOR.ui.button.prototype =
                        output.push(\r
                                        '<span class="cke_buttonarrow">'\r
                                        // BLACK DOWN-POINTING TRIANGLE\r
-                                       + ( CKEDITOR.env.hc ? '&#9660;' : '' )\r
+                                       + ( CKEDITOR.env.hc ? '&#9660;' : '&nbsp;' )\r
                                        + '</span>' );\r
                }\r
 \r
@@ -270,3 +270,8 @@ CKEDITOR.ui.prototype.addButton = function( name, definition )
 {\r
        this.add( name, CKEDITOR.UI_BUTTON, definition );\r
 };\r
+\r
+CKEDITOR.on( 'reset', function()\r
+       {\r
+               CKEDITOR.ui.button._.instances = [];\r
+       });\r