Ticket #3213: 3213_5.patch

File 3213_5.patch, 1.7 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    167167                                                                iframe.setAttribute( 'src', 'javascript:void(0)' );
    168168                                                }
    169169
    170                                                 // Append the new IFRAME to the main element. For IE, it
    171                                                 // must be done after setting the "src", to avoid the
    172                                                 // "secure/unsecure" message under HTTPS.
    173                                                 mainElement.append( iframe );
    174 
    175 
    176170                                                if ( CKEDITOR.env.gecko )
    177171                                                {
    178172                                                        // Accessibility attributes for Firefox.
     
    190184                                                else if ( CKEDITOR.env.ie )
    191185                                                {
    192186                                                        // 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 );
    201196                                                }
     197
     198                                                if ( !CKEDITOR.env.ie )
     199                                                        mainElement.append( iframe );
    202200                                        };
    203201
    204202                                        // 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