*/\r
render : function( editor, output )\r
{\r
- var env = CKEDITOR.env;\r
+ var env = CKEDITOR.env,\r
+ id = this._.id = 'cke_' + CKEDITOR.tools.getNextNumber(),\r
+ classes = '',\r
+ command = this.command, // Get the command name.\r
+ clickFn,\r
+ index;\r
\r
- var id = this._.id = 'cke_' + CKEDITOR.tools.getNextNumber();\r
this._.editor = editor;\r
\r
var instance =\r
}\r
};\r
\r
- var clickFn = CKEDITOR.tools.addFunction( instance.execute, instance );\r
+ instance.clickFn = clickFn = CKEDITOR.tools.addFunction( instance.execute, instance );\r
\r
- var index = CKEDITOR.ui.button._.instances.push( instance ) - 1;\r
-\r
- var classes = '';\r
-\r
- // Get the command name.\r
- var command = this.command;\r
+ instance.index = index = CKEDITOR.ui.button._.instances.push( instance ) - 1;\r
\r
if ( this.modes )\r
{\r
'<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
}\r
\r
output.push(\r
- '></span>' +\r
+ '> </span>' +\r
'<span id="', id, '_label" class="cke_label">', this.label, '</span>' );\r
\r
if ( this.hasArrow )\r
{\r
output.push(\r
- '<span class="cke_buttonarrow"></span>' );\r
+ '<span class="cke_buttonarrow">'\r
+ // BLACK DOWN-POINTING TRIANGLE\r
+ + ( CKEDITOR.env.hc ? '▼' : ' ' )\r
+ + '</span>' );\r
}\r
\r
output.push(\r
{\r
this.add( name, CKEDITOR.UI_BUTTON, definition );\r
};\r
+\r
+CKEDITOR.on( 'reset', function()\r
+ {\r
+ CKEDITOR.ui.button._.instances = [];\r
+ });\r