Ticket #3213: 3213_4.patch
File 3213_4.patch, 1.8 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
142 142 iframe.setAttribute( 'src', 'javascript:void(0)' ); 143 143 } 144 144 145 // Append the new IFRAME to the main element. For IE, it146 // must be done after setting the "src", to avoid the147 // "secure/unsecure" message under HTTPS.148 mainElement.append( iframe );149 150 151 145 if ( CKEDITOR.env.gecko ) 152 146 { 153 147 // Accessibility attributes for Firefox. … … 161 155 role : 'region', 162 156 title : ' ' 163 157 } ); 158 164 159 } 165 160 else if ( CKEDITOR.env.ie ) 166 161 { 167 162 // Accessibility label for IE. 168 var label = CKEDITOR.document.createElement( 'label' ); 169 label.setStyles( { 170 position : 'absolute', 171 'top' : '-1000000px', 172 left : '-1000000px' 173 } ); 174 label.append( CKEDITOR.document.createText( editor.lang.editorTitle.replace( '%1', editor.name ) ) ); 175 label.insertBefore( iframe ); 163 var fieldset = CKEDITOR.dom.element.createFromHtml( 164 [ 165 '<fieldset style="height: 100%">', 166 '<legend style="position: absolute; top: -1000000px; left: -1000000px">', 167 CKEDITOR.tools.htmlEncode( editor.lang.editorTitle.replace( '%1', editor.name ) ), 168 '</legend>', 169 '</fieldset>' 170 ].join(), CKEDITOR.document ); 171 iframe.appendTo( fieldset ); 172 fieldset.appendTo( mainElement ); 176 173 } 174 175 if ( !CKEDITOR.env.ie ) 176 mainElement.append( iframe ); 177 177 }; 178 178 179 179 // The script that is appended to the data being loaded. It