浏览代码

Docs: Clarified a comment.

Szymon Cofalik 7 年之前
父节点
当前提交
1b30b20a45
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/ckeditor5-engine/src/model/range.js

+ 2 - 1
packages/ckeditor5-engine/src/model/range.js

@@ -525,7 +525,8 @@ export default class Range {
 
 		// Below may happen when range contains graveyard element used by split operation.
 		if ( start.root != end.root ) {
-			// End position was next to the moved graveyard element and was moved with it. Fix it.
+			// End position was next to the moved graveyard element and was moved with it.
+			// Fix it by using old `end` which has proper `root`.
 			end = this.end.getShiftedBy( -1 );
 		}