Ticket #3800: 3800.patch
File 3800.patch, 1019 bytes (added by , 15 years ago) |
---|
-
_source/plugins/button/plugin.js
188 188 return; 189 189 190 190 var element = CKEDITOR.document.getById( this._.id ); 191 element.setState( state );192 191 193 var htmlTitle = this.title,194 unavailable = this._.editor.lang.common.unavailable,195 labelElement = element.getChild( 1);192 if ( element ) 193 { 194 element.setState( state ); 196 195 197 if ( state == CKEDITOR.TRISTATE_DISABLED ) 198 htmlTitle = unavailable.replace( '%1', this.title ); 196 var htmlTitle = this.title, 197 unavailable = this._.editor.lang.common.unavailable, 198 labelElement = element.getChild( 1 ); 199 199 200 labelElement.setHtml( htmlTitle ); 200 if ( state == CKEDITOR.TRISTATE_DISABLED ) 201 htmlTitle = unavailable.replace( '%1', this.title ); 201 202 203 labelElement.setHtml( htmlTitle ); 204 } 205 202 206 this._.state = state; 203 207 } 204 208 };