Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix document selection examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Oct 30, 2018
1 parent a40fc17 commit 6c14fba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/view/documentselection.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default class DocumentSelection {
* const selection = new DocumentSelection();
*
* // Creates selection at the given range.
* const range = writer.createSelection( start, end );
* const range = writer.createRange( start, end );
* const selection = new DocumentSelection( range );
*
* // Creates selection at the given ranges
* const ranges = [ writer.createSelection( start1, end2 ), writer.createSelection( star2, end2 ) ];
* const ranges = [ writer.createRange( start1, end2 ), writer.createRange( start2, end2 ) ];
* const selection = new DocumentSelection( ranges );
*
* // Creates selection from the other selection.
Expand Down Expand Up @@ -290,11 +290,11 @@ export default class DocumentSelection {
* an iterable of {@link module:engine/view/range~Range ranges} or null.
*
* // Sets selection to the given range.
* const range = writer.createSelection( start, end );
* const range = writer.createRange( start, end );
* documentSelection._setTo( range );
*
* // Sets selection to given ranges.
* const ranges = [ writer.createSelection( start1, end2 ), writer.createSelection( star2, end2 ) ];
* const ranges = [ writer.createRange( start1, end2 ), writer.createRange( start2, end2 ) ];
* documentSelection._setTo( range );
*
* // Sets selection to the other selection.
Expand Down

0 comments on commit 6c14fba

Please sign in to comment.