Ticket #3623: 3623.patch

File 3623.patch, 988 bytes (added by Martin Kou, 16 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    368368                                                                        editor.focus();
    369369                                                                        isPendingFocus = false;
    370370                                                                }
     371
     372                                                                /*
     373                                                                 * IE BUG: IE might have rendered the iframe with invisible contents.
     374                                                                 * (#3623). Push some inconsequential CSS style changes to force IE to
     375                                                                 * refresh it.
     376                                                                 *
     377                                                                 * Also, for some unknown reasons, short timeouts (e.g. 100ms) do not
     378                                                                 * fix the problem. :(
     379                                                                 */
     380                                                                if ( CKEDITOR.env.ie )
     381                                                                {
     382                                                                        setTimeout( function()
     383                                                                                {
     384                                                                                        var $body = editor.document.$.body;
     385                                                                                        $body.runtimeStyle.marginBottom = '0px';
     386                                                                                        $body.runtimeStyle.marginBottom = '';
     387                                                                                }, 1000 );
     388                                                                }
    371389                                                        },
    372390                                                        0 );
    373391                                        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy