Ticket #5125: 5125_2.patch
File 5125_2.patch, 3.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
185 185 186 186 if ( !element.attributes.type ) 187 187 element.attributes.type = 'text/css'; 188 }, 189 190 title : function( element ) 191 { 192 element.children[ 0 ].value = element.attributes[ '_cke_title' ]; 188 193 } 189 194 }, 190 195 -
_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 var title = editor.document.getElementsByTag( 'title' ).getItem( 0 ); 732 title.setAttribute( '_cke_title', editor.document.$.title ); 733 editor.document.$.title = frameLabel; 734 }); 735 736 725 737 // Create an invisible element to grab focus. 726 738 if( CKEDITOR.env.ie ) 727 739 { -
_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 {