JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / plugins / button / plugin.js
index a882a39..305a6f9 100644 (file)
@@ -70,7 +70,7 @@ CKEDITOR.ui.button.prototype =
        render : function( editor, output )\r
        {\r
                var env = CKEDITOR.env,\r
-                       id = this._.id = 'cke_' + CKEDITOR.tools.getNextNumber(),\r
+                       id = this._.id = CKEDITOR.tools.getNextId(),\r
                        classes = '',\r
                        command = this.command, // Get the command name.\r
                        clickFn,\r
@@ -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