Browse Source

Docs: Added "missing" example in a comment.

Szymon Cofalik 8 years ago
parent
commit
973f1d6f19
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/ckeditor5-engine/src/model/range.js

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

@@ -471,6 +471,7 @@ export default class Range {
 				// Collapsed range is in merged element.
 				// Without fix, the range would end up in the graveyard, together with removed element.
 				// <p>foo</p><p>[]bar</p> -> <p>foobar</p><p>[]</p> -> <p>foobar</p> -> <p>foo[]bar</p>
+				// <p>foo</p><p>bar[]</p>
 				return [ new Range( targetPosition.getShiftedBy( this.start.offset ) ) ];
 			}
 			//