Ticket #3294: 3294.patch
File 3294.patch, 1.5 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
167 167 iframe.setAttribute( 'src', 'javascript:void(0)' ); 168 168 } 169 169 170 var accTitle = editor.lang.editorTitle.replace( '%1', editor.name ); 171 170 172 if ( CKEDITOR.env.gecko ) 171 173 { 172 174 // Accessibility attributes for Firefox. 173 175 mainElement.setAttributes( 174 176 { 175 177 role : 'region', 176 title : editor.lang.editorTitle.replace( '%1', editor.name ) + '. Type in text.'178 title : accTitle 177 179 } ); 178 180 iframe.setAttributes( 179 181 { … … 181 183 title : ' ' 182 184 } ); 183 185 } 186 else if ( CKEDITOR.env.webkit ) 187 { 188 iframe.setAttribute( 'title', accTitle ); // Safari 4 189 iframe.setAttribute( 'name', accTitle ); // Safari 3 190 } 184 191 else if ( CKEDITOR.env.ie ) 185 192 { 186 193 // Accessibility label for IE. 187 194 var fieldset = CKEDITOR.dom.element.createFromHtml( 188 195 '<fieldset style="height:100%">' + 189 196 '<legend style="position:absolute;top:-1000px">' + 190 CKEDITOR.tools.htmlEncode( editor.lang.editorTitle.replace( '%1', editor.name )) +197 CKEDITOR.tools.htmlEncode( accTitle ) + 191 198 '</legend>' + 192 199 '</fieldset>' 193 200 , CKEDITOR.document );