mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Merge pull request #43 from cvrebert/patch-1
README: hyperlink Range references to MDN docs
This commit is contained in:
commit
b8df233def
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ Returns the path through the DOM tree from the `<body>` element to the current c
|
||||||
|
|
||||||
### getSelection
|
### getSelection
|
||||||
|
|
||||||
Returns a W3C Range object representing the current selection/cursor position.
|
Returns a [W3C Range object](https://developer.mozilla.org/en-US/docs/Web/API/Range) representing the current selection/cursor position.
|
||||||
|
|
||||||
### setSelection
|
### setSelection
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ Changes the current selection/cursor position.
|
||||||
|
|
||||||
The method takes one argument:
|
The method takes one argument:
|
||||||
|
|
||||||
* **range**: The W3C Range object representing the desired selection.
|
* **range**: The [W3C Range object](https://developer.mozilla.org/en-US/docs/Web/API/Range) representing the desired selection.
|
||||||
|
|
||||||
Returns self (the Squire instance).
|
Returns self (the Squire instance).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue