Ticket #3213: 3213_4.patch

File 3213_4.patch, 1.8 KB (added by Martin Kou, 15 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    142142                                                                iframe.setAttribute( 'src', 'javascript:void(0)' );
    143143                                                }
    144144
    145                                                 // Append the new IFRAME to the main element. For IE, it
    146                                                 // must be done after setting the "src", to avoid the
    147                                                 // "secure/unsecure" message under HTTPS.
    148                                                 mainElement.append( iframe );
    149 
    150 
    151145                                                if ( CKEDITOR.env.gecko )
    152146                                                {
    153147                                                        // Accessibility attributes for Firefox.
     
    161155                                                                        role : 'region',
    162156                                                                        title : ' '
    163157                                                                } );
     158                                               
    164159                                                }
    165160                                                else if ( CKEDITOR.env.ie )
    166161                                                {
    167162                                                        // 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 );
    176173                                                }
     174
     175                                                if ( !CKEDITOR.env.ie )
     176                                                        mainElement.append( iframe );
    177177                                        };
    178178
    179179                                        // The script that is appended to the data being loaded. It
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy