Ticket #3557: 3557_2.patch
File 3557_2.patch, 2.3 KB (added by , 16 years ago) |
---|
-
_source/lang/en.js
92 92 advancedTab : 'Advanced', 93 93 validateNumberFailed : 'This value is not a number.', 94 94 confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', 95 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?' 95 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', 96 97 // Put the voice-only part of the label in the span. 98 unavailable : '%1<span class="cke_accessibility">, unavailable</span>' 96 99 }, 97 100 98 101 // Special char dialog. -
_source/plugins/menu/plugin.js
276 276 state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 277 277 'off' ); 278 278 279 var htmlLabel = this.label; 280 if ( state == CKEDITOR.TRISTATE_DISABLED ) 281 htmlLabel = this.editor.lang.common.unavailable.replace( '%1', htmlLabel ); 282 279 283 if ( this.className ) 280 284 classes += ' ' + this.className; 281 285 … … 325 329 } 326 330 327 331 output.push( 328 this.label,332 htmlLabel, 329 333 '</span>' + 330 334 '</a>' + 331 335 '</span>' ); -
_source/plugins/button/plugin.js
70 70 var env = CKEDITOR.env; 71 71 72 72 var id = this._.id = 'cke_' + CKEDITOR.tools.getNextNumber(); 73 this._.editor = editor; 73 74 74 75 var instance = 75 76 { … … 183 184 if ( this._.state == state ) 184 185 return; 185 186 186 CKEDITOR.document.getById( this._.id ).setState( state ); 187 var element = CKEDITOR.document.getById( this._.id ); 188 element.setState( state ); 187 189 190 var htmlTitle = this.title, 191 unavailable = this._.editor.lang.common.unavailable, 192 labelElement = element.getChild( 1 ); 193 194 if ( state == CKEDITOR.TRISTATE_DISABLED ) 195 htmlTitle = unavailable.replace( '%1', this.title ); 196 197 labelElement.setHtml( htmlTitle ); 198 188 199 this._.state = state; 189 200 } 190 201 };