@@ -35,46 +35,46 @@ export default class Selection {
3535 * or on the given {@link module:engine/model/element~Element element},
3636 * or creates an empty selection if no arguments were passed.
3737 *
38- * // Creates empty selection without ranges.
38+ * // Creates empty selection without ranges.
3939 * const selection = new Selection();
4040 *
4141 * // Creates selection at the given range.
4242 * const range = new Range( start, end );
4343 * const selection = new Selection( range );
4444 *
4545 * // Creates selection at the given ranges
46- * const ranges = [ new Range( start1, end2 ), new Range( star2, end2 ) ];
46+ * const ranges = [ new Range( start1, end2 ), new Range( star2, end2 ) ];
4747 * const selection = new Selection( ranges );
4848 *
4949 * // Creates selection from the other selection.
5050 * // Note: It doesn't copies selection attributes.
5151 * const otherSelection = new Selection();
5252 * const selection = new Selection( otherSelection );
5353 *
54- * // Creates selection from the given document selection.
54+ * // Creates selection from the given document selection.
5555 * // Note: It doesn't copies selection attributes.
5656 * const documentSelection = new DocumentSelection( doc );
5757 * const selection = new Selection( documentSelection );
5858 *
59- * // Creates selection at the given position.
59+ * // Creates selection at the given position.
6060 * const position = new Position( root, path );
6161 * const selection = new Selection( position );
6262 *
63- * // Creates selection at the start position of the given element.
63+ * // Creates selection at the start position of the given element.
6464 * const paragraph = writer.createElement( 'paragraph' );
6565 * const selection = new Selection( paragraph, offset );
6666 *
67- * // Creates a range inside an {@link module:engine/model/element~Element element } which starts before the
68- * // first child of that element and ends after the last child of that element.
67+ * // Creates a range inside an {@link module:engine/model/element~Element element } which starts before the
68+ * // first child of that element and ends after the last child of that element.
6969 * const selection = new Selection( paragraph, 'in' );
7070 *
71- * // Creates a range on an {@link module:engine/model/item~Item item } which starts before the item and ends
72- * // just after the item.
71+ * // Creates a range on an {@link module:engine/model/item~Item item } which starts before the item and ends
72+ * // just after the item.
7373 * const selection = new Selection( paragraph, 'on' );
7474 *
7575 * Selection's constructor allow passing additional options (`'backward'`) as the last argument.
7676 *
77- * // Creates backward selection.
77+ * // Creates backward selection.
7878 * const selection = new Selection( range, { backward: true } );
7979 *
8080 * @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection|
@@ -326,32 +326,32 @@ export default class Selection {
326326 * {@link module:engine/model/element~Element element}, {@link module:engine/model/position~Position position},
327327 * {@link module:engine/model/range~Range range}, an iterable of {@link module:engine/model/range~Range ranges} or null.
328328 *
329- * // Removes all selection's ranges.
329+ * // Removes all selection's ranges.
330330 * selection.setTo( null );
331331 *
332332 * // Sets selection to the given range.
333333 * const range = new Range( start, end );
334334 * selection.setTo( range );
335335 *
336336 * // Sets selection to given ranges.
337- * const ranges = [ new Range( start1, end2 ), new Range( star2, end2 ) ];
337+ * const ranges = [ new Range( start1, end2 ), new Range( star2, end2 ) ];
338338 * selection.setTo( ranges );
339339 *
340340 * // Sets selection to other selection.
341341 * // Note: It doesn't copies selection attributes.
342342 * const otherSelection = new Selection();
343343 * selection.setTo( otherSelection );
344344 *
345- * // Sets selection to the given document selection.
345+ * // Sets selection to the given document selection.
346346 * // Note: It doesn't copies selection attributes.
347347 * const documentSelection = new DocumentSelection( doc );
348348 * selection.setTo( documentSelection );
349349 *
350- * // Sets collapsed selection at the given position.
350+ * // Sets collapsed selection at the given position.
351351 * const position = new Position( root, path );
352352 * selection.setTo( position );
353353 *
354- * // Sets collapsed selection at the position of the given node and an offset.
354+ * // Sets collapsed selection at the position of the given node and an offset.
355355 * selection.setTo( paragraph, offset );
356356 *
357357 * Creates a range inside an {@link module:engine/model/element~Element element} which starts before the first child of
@@ -365,7 +365,7 @@ export default class Selection {
365365 *
366366 * `Selection#setTo()`' method allow passing additional options (`backward`) as the last argument.
367367 *
368- * // Sets backward selection.
368+ * // Sets backward selection.
369369 * const selection = new Selection( range, { backward: true } );
370370 *
371371 * @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection|
0 commit comments