Ver código fonte

Docs: Clarified a comment.

Szymon Cofalik 7 anos atrás
pai
commit
1b30b20a45
1 arquivos alterados com 2 adições e 1 exclusões
  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 );
 		}