Ticket #2913: 2913.patch
File 2913.patch, 1.2 KB (added by , 15 years ago) |
---|
-
_source/plugins/button/plugin.js
116 116 } 117 117 }; 118 118 119 var index = CKEDITOR.ui.button._.instances.push( instance ) - 1; 120 121 var classes = 'cke_button'; 122 119 123 // Get the command name. 120 124 var command = this.command; 121 125 … … 130 134 { 131 135 this.setState( command.state ); 132 136 }, this); 137 138 classes += ' cke_' + ( 139 command.state == CKEDITOR.TRISTATE_ON ? 'on' : 140 command.state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 141 'off' ); 133 142 } 134 143 } 135 144 136 var index = CKEDITOR.ui.button._.instances.push( instance ) - 1; 145 if ( this.className ) 146 classes += ' ' + this.className; 137 147 138 148 output.push( 139 149 '<a id="', id, '"' + 140 ' class=" cke_button ', this.className, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' +150 ' class="', classes, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' + 141 151 ' title="', this.title, '"' + 142 152 ' tabindex="-1"' + 143 153 ' hidefocus="true"' );