0
Fork 0
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:
Neil Jenkins 2015-03-05 10:38:24 +08:00
commit b8df233def

View file

@ -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).