JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / button / plugin.js
index b211a28..54016fb 100644 (file)
@@ -69,9 +69,13 @@ CKEDITOR.ui.button.prototype =
         */\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
@@ -90,14 +94,9 @@ CKEDITOR.ui.button.prototype =
                        }\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
@@ -179,7 +178,10 @@ CKEDITOR.ui.button.prototype =
                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 ? '&#9660;' : '' )\r
+                                       + '</span>' );\r
                }\r
 \r
                output.push(\r