Changeset 5107
- Timestamp:
- 02/12/10 14:54:29 (3 years ago)
- Location:
- CKEditor/branches/versions/3.2.x/_source/plugins
- Files:
-
- 3 edited
-
a11ycompat/plugin.js (modified) (2 diffs)
-
htmldataprocessor/plugin.js (modified) (1 diff)
-
wysiwygarea/plugin.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/versions/3.2.x/_source/plugins/a11ycompat/plugin.js
r5092 r5107 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 } … … 72 71 fieldset.insertBefore( element ); 73 72 fieldset.append( element ); 74 }75 // The only reliable substitution of aria-label on an iframe76 // 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 73 } 86 74 } -
CKEditor/branches/versions/3.2.x/_source/plugins/htmldataprocessor/plugin.js
r4858 r5107 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 }, -
CKEditor/branches/versions/3.2.x/_source/plugins/wysiwygarea/plugin.js
r5092 r5107 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 { … … 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. … … 276 277 ' tabIndex="-1"' + 277 278 ' allowTransparency="true"' + 278 ' role=" region"' +279 ' role="editbox"' + 279 280 ' aria-multiline="true"' + 280 281 ' aria-label="' + frameLabel + '"' + … … 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 )
Note: See TracChangeset
for help on using the changeset viewer.
