Ticket #7844: 7844.patch

File 7844.patch, 1.1 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    536536                                                if ( document.location.protocol == 'chrome:' )
    537537                                                        CKEDITOR.event.useCapture = false;
    538538
    539                                                 // The container must be visible when creating the iframe in FF (#5956)
    540                                                 var element = editor.element,
    541                                                         isHidden = CKEDITOR.env.gecko && !element.isVisible(),
    542                                                         previousStyles = {};
    543                                                 if ( isHidden )
    544                                                 {
    545                                                         element.show();
    546                                                         previousStyles = {
    547                                                                 position : element.getStyle( 'position' ),
    548                                                                 top : element.getStyle( 'top' )
    549                                                         };
    550                                                         element.setStyles( { position : 'absolute', top : '-3000px' } );
    551                                                 }
    552 
    553539                                                mainElement.append( iframe );
    554 
    555                                                 if ( isHidden )
    556                                                 {
    557                                                         setTimeout( function()
    558                                                         {
    559                                                                 element.hide();
    560                                                                 element.setStyles( previousStyles );
    561                                                         }, 1000 );
    562                                                 }
    563540                                        };
    564541
    565542                                        // The script that launches the bootstrap logic on 'domReady', so the document
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy