JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / button / plugin.js
index 54016fb..f16e192 100644 (file)
@@ -134,7 +134,7 @@ CKEDITOR.ui.button.prototype =
                        '<span class="cke_button">',\r
                        '<a id="', id, '"' +\r
                                ' class="', classes, '"',\r
-                               env.gecko && env.version >= 10900 && !env.hc  ? '' : '" href="javascript:void(\''+ ( this.title || '' ).replace( "'"+ '' )+ '\')"',\r
+                               env.gecko && env.version >= 10900 && !env.hc  ? '' : '" href="javascript:void(\''+ ( this.title || '' ).replace( "'", '' )+ '\')"',\r
                                ' title="', this.title, '"' +\r
                                ' tabindex="-1"' +\r
                                ' hidefocus="true"' +\r
@@ -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