Ticket #7360: 7360_2.patch

File 7360_2.patch, 812 bytes (added by Garry Yao, 12 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    546546                                                        CKEDITOR.event.useCapture = false;
    547547
    548548                                                mainElement.append( iframe );
     549
     550                                                // Webkit: iframe size doesn't auto fit well. (#7360)
     551                                                if ( CKEDITOR.env.webkit )
     552                                                {
     553                                                        var win = CKEDITOR.document.getWindow();
     554                                                        function onResize()
     555                                                        {
     556                                                                iframe.hide();
     557                                                                iframe.setSize( 'width', mainElement.getSize( 'width' ) );
     558                                                                iframe.show();
     559                                                        }
     560                                                        win.on( 'resize', onResize );
     561                                                }
    549562                                        };
    550563
    551564                                        // 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