Ticket #8812: 8812.patch
File 8812.patch, 793 bytes (added by , 13 years ago) |
---|
-
_source/core/dom/range.js
788 788 789 789 if ( container.type != CKEDITOR.NODE_ELEMENT ) 790 790 { 791 if ( !offset )791 if ( !offset || container.type != CKEDITOR.NODE_TEXT ) // #8812 792 792 this.setStartBefore( container ); 793 793 else if ( offset >= container.getLength() ) 794 794 this.setStartAfter( container ); … … 801 801 { 802 802 if ( !offset ) 803 803 this.setEndBefore( container ); 804 else if ( offset >= container.getLength() )804 else if ( container.type != CKEDITOR.NODE_ELEMENT || offset >= container.getLength() ) // #8812 805 805 this.setEndAfter( container ); 806 806 } 807 807 },