Ticket #4774: 4774.patch

File 4774.patch, 1.0 KB (added by Garry Yao, 14 years ago)
  • _source/core/dom/range.js

     
    14581458                                }
    14591459                                else
    14601460                                {
    1461                                         this.splitElement( startBlock );
     1461                                        endBlock = this.splitElement( startBlock );
    14621462                                        // In Gecko, the last child node must be a bogus <br>.
    14631463                                        // Note: bogus <br> added under <ul> or <ol> would cause
    14641464                                        // lists to be incorrectly rendered.
     
    14811481                 * place the caret between the two result branches.
    14821482                 * Note: The range must be collapsed and been enclosed by this element.
    14831483                 * @param {CKEDITOR.dom.element} element
     1484                 * @return {CKEDITOR.dom.element} Root element of the new branch after the split.
    14841485                 */
    14851486                splitElement : function( toSplit )
    14861487                {
     
    14991500                        documentFragment.appendTo( clone );
    15001501                        clone.insertAfter( toSplit );
    15011502                        this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END );
     1503                        return clone;
    15021504                },
    15031505
    15041506                /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy