1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-31 12:38:18 +01:00

Update commands.md (#2551)

Fixed incorrect documentation for `moveToRangeOfNode`
This commit is contained in:
Tom Moor 2019-01-21 18:25:09 -08:00 committed by Sunny Hirai
parent 68e5ff95d9
commit 43ee38e39d

View File

@ -245,9 +245,9 @@ Move the current selection to the `{Edge}` of the closest inline parent. Where `
Move the current selection to the `{Edge}` of the current text node. Where `{Edge}` is either `Start` or `End`. And where `{Point}` is either `Anchor`, `Focus`, `Start` or `End`. You can also omit `{Point}` to move both the anchor and focus points at the same time.
### `moveToRangeOf`
### `moveToRangeOfNode`
`moveToRangeOf(node: Node) => Editor`
`moveToRangeOfNode(node: Node) => Editor`
Move the current selection's anchor point to the start of a `node` and its focus point to the end of the `node`.