Ticket #3213: 3213_5.patch
File 3213_5.patch, 1.7 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
167 167 iframe.setAttribute( 'src', 'javascript:void(0)' ); 168 168 } 169 169 170 // Append the new IFRAME to the main element. For IE, it171 // must be done after setting the "src", to avoid the172 // "secure/unsecure" message under HTTPS.173 mainElement.append( iframe );174 175 176 170 if ( CKEDITOR.env.gecko ) 177 171 { 178 172 // Accessibility attributes for Firefox. … … 190 184 else if ( CKEDITOR.env.ie ) 191 185 { 192 186 // Accessibility label for IE. 193 var label = CKEDITOR.document.createElement( 'label' ); 194 label.setStyles( { 195 position : 'absolute', 196 'top' : '-1000000px', 197 left : '-1000000px' 198 } ); 199 label.append( CKEDITOR.document.createText( editor.lang.editorTitle.replace( '%1', editor.name ) ) ); 200 label.insertBefore( iframe ); 187 var fieldset = CKEDITOR.dom.element.createFromHtml( 188 '<fieldset style="height:100%">' + 189 '<legend style="position:absolute;top:-1000px">' + 190 CKEDITOR.tools.htmlEncode( editor.lang.editorTitle.replace( '%1', editor.name ) ) + 191 '</legend>' + 192 '</fieldset>' 193 , CKEDITOR.document ); 194 iframe.appendTo( fieldset ); 195 fieldset.appendTo( mainElement ); 201 196 } 197 198 if ( !CKEDITOR.env.ie ) 199 mainElement.append( iframe ); 202 200 }; 203 201 204 202 // The script that is appended to the data being loaded. It