Ticket #3656: 3656.patch

File 3656.patch, 894 bytes (added by Martin Kou, 16 years ago)
  • _source/core/dom/range.js

     
    687687                        var startContainer = this.startContainer;
    688688                        var startOffset = this.startOffset;
    689689
    690                         var endContainer = this.endContainer;
    691                         var endOffset = this.endOffset;
    692 
    693690                        if ( !ignoreStart && startContainer && startContainer.type == CKEDITOR.NODE_TEXT )
    694691                        {
    695692                                // If the offset is zero, we just insert the new node before
     
    725722                                this.setStart( startContainer, startOffset );
    726723                        }
    727724
     725                        var endContainer = this.endContainer;
     726                        var endOffset = this.endOffset;
     727
    728728                        if ( !ignoreEnd && endContainer && !this.collapsed && endContainer.type == CKEDITOR.NODE_TEXT )
    729729                        {
    730730                                // If the offset is zero, we just insert the new node before
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy