Ticket #5125: 5125.patch
File 5125.patch, 2.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
241 241 var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR ) 242 242 ? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false; 243 243 244 var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name ); 245 244 246 editor.on( 'editingBlockReady', function() 245 247 { 246 248 var mainElement, … … 250 252 frameLoaded, 251 253 fireMode; 252 254 253 var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name );254 255 255 256 // Support for custom document.domain in IE. 256 257 var isCustomDomain = CKEDITOR.env.isCustomDomain(); … … 275 276 '})())"' : '' ) + 276 277 ' tabIndex="-1"' + 277 278 ' allowTransparency="true"' + 278 ' role=" region"' +279 ' role="editbox"' + 279 280 ' aria-multiline="true"' + 280 281 ' aria-label="' + frameLabel + '"' + 281 282 '></iframe>' ); … … 722 723 editor.on( 'selectionChange', onSelectionChangeFixBody, null, null, 1 ); 723 724 }); 724 725 726 var titleBackup; 727 // Setting voice label as window title, backup the original one 728 // and restore it before running into use. 729 editor.on( 'contentDom', function () 730 { 731 titleBackup = editor.document.$.title; 732 editor.document.$.title = frameLabel; 733 }); 734 735 editor.on( 'beforeModeUnload', function() 736 { 737 editor.mode == 'wysiwyg' && ( editor.document.$.title = titleBackup ); 738 }); 739 725 740 // Create an invisible element to grab focus. 726 741 if( CKEDITOR.env.ie ) 727 742 { -
_source/plugins/a11ycompat/plugin.js
22 22 function lookupARIASupport( role, tagName ) 23 23 { 24 24 return { 25 'dialog' : env.gecko && env.version >= 10900, 26 'region' : env.gecko && env.version >= 10900 25 'dialog' : env.gecko && env.version >= 10900 27 26 }[ role ]; 28 27 } 29 28 … … 72 71 fieldset.insertBefore( element ); 73 72 fieldset.append( element ); 74 73 } 75 // The only reliable substitution of aria-label on an iframe 76 // is to use the content window title of that frame. 77 else if ( element.is( 'iframe' ) ) 78 { 79 doc = element.$.contentWindow.document; 80 var title = doc.title; 81 82 // Backup the title and restore it before running into use. 83 title && editor.on( 'beforeModeUnload', function() { doc.title = title; } ); 84 doc.title = allInOne; 85 } 86 } 74 } 87 75 88 76 CKEDITOR.plugins.add( 'a11ycompat', 89 77 {