Ticket #3557: 3557.patch
File 3557.patch, 3.0 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 unavailable : 'Unavailable' 96 97 }, 97 98 98 99 // Special char dialog. -
_source/plugins/menu/plugin.js
276 276 state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 277 277 'off' ); 278 278 279 var suffix = ( state == CKEDITOR.TRISTATE_DISABLED ? ', ' + this.editor.lang.common.unavailable : '' ); 280 var label = this.label + suffix; 281 279 282 if ( this.className ) 280 283 classes += ' ' + this.className; 281 284 282 285 output.push( 283 286 '<span class="cke_menuitem">' + 284 287 '<a id="', id, '"' + 285 ' class="', classes, '" href="javascript:void(\'', ( this.label || '' ).replace( "'", '' ), '\')"' +286 ' title="', this.label, '"' +288 ' class="', classes, '" href="javascript:void(\'', ( label || '' ).replace( "'", '' ), '\')"' + 289 ' title="', label + suffix , '"' + 287 290 ' tabindex="-1"' + 288 291 '_cke_focus=1' + 289 292 ' hidefocus="true"' ); … … 325 328 } 326 329 327 330 output.push( 328 this.label ,331 this.label + '<span style="position:absolute;top:-1000000px">' + suffix + '</span>', 329 332 '</span>' + 330 333 '</a>' + 331 334 '</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 title = element.getAttribute( 'title' ), 191 suffix = ', ' + this._.editor.lang.common.unavailable, 192 index = title.search( suffix ), 193 labelElement = element.getChild( 1 ); 194 195 if ( state == CKEDITOR.TRISTATE_DISABLED ) 196 { 197 if ( index != title.length - suffix.length ) 198 title = title + suffix; 199 } 200 else 201 { 202 if ( index > -1 && index == title.length - suffix.length ) 203 title = title.substr( 0, index ); 204 } 205 206 element.setAttribute( 'title', title ); 207 labelElement.setText( title ); 208 188 209 this._.state = state; 189 210 } 190 211 };