JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.4
[ckeditor.git] / _source / plugins / button / plugin.js
index 569fa92..a5bbccb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -181,7 +181,7 @@ CKEDITOR.ui.button.prototype =
                        classes += ' ' + this.className;\r
 \r
                output.push(\r
-                       '<span class="cke_button">',\r
+                       '<span class="cke_button' + ( this.icon && this.icon.indexOf( '.png' ) == -1 ? ' cke_noalphafix' : '' ) + '">',\r
                        '<a id="', id, '"' +\r
                                ' class="', classes, '"',\r
                                env.gecko && env.version >= 10900 && !env.hc  ? '' : '" href="javascript:void(\''+ ( this.title || '' ).replace( "'", '' )+ '\')"',\r
@@ -275,8 +275,8 @@ CKEDITOR.ui.button.prototype =
 \r
 /**\r
  * Adds a button definition to the UI elements list.\r
- * @param {String} The button name.\r
- * @param {Object} The button definition.\r
+ * @param {String} name The button name.\r
+ * @param {Object} definition The button definition.\r
  * @example\r
  * editorInstance.ui.addButton( 'MyBold',\r
  *     {\r