Ticket #4835: 4835.patch

File 4835.patch, 1.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/maximize/plugin.js

     
    114114                                        editorFocus : false,
    115115                                        exec : function()
    116116                                        {
    117                                                 var container = editor.container.getChild( [ 0, 0 ] );
     117                                                var container = editor.container.getChild( 0 );
    118118                                                var contents = editor.getThemeSpace( 'contents' );
    119119
    120120                                                // Save current selection and scroll position in editing area.
  • _source/themes/default/theme.js

     
    276276        if ( numberRegex.test( width ) )
    277277                width += 'px';
    278278
    279         var contents = CKEDITOR.document.getById( 'cke_contents_' + this.name );
    280         var outer = resizeInner ? contents.getAscendant( 'table' ).getParent()
    281                 : contents.getAscendant( 'table' ).getParent().getParent().getParent();
     279        var container = this.container,
     280                contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ),
     281                outer = resizeInner ? container.getChild( 0 ) : container;
    282282
    283283        // Resize the width first.
    284284        // WEBKIT BUG: Webkit requires that we put the editor off from display when we
     
    302302
    303303CKEDITOR.editor.prototype.getResizable = function()
    304304{
    305         return this.container.getChild( [ 0, 0 ] );
     305        return this.container.getChild( 0 );
    306306};
    307307
    308308/**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy