mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 22:02:05 +02:00
update state.moveTo() reference
This commit is contained in:
parent
7225a40a2f
commit
bd200cf4b8
@ -213,9 +213,9 @@ Move the current selection's offsets to a new `anchorOffset` and `focusOffset`.
|
||||
Move the current selection's anchor point to the start of a `node` and its focus point to the end of the `node`.
|
||||
|
||||
### `moveTo`
|
||||
`moveTo(properties: Object) => Transform`
|
||||
`moveTo(properties: Selection || Object) => Transform`
|
||||
|
||||
Move the current selection to a selection with merged `properties`.
|
||||
Move the current selection to a selection with merged `properties`. The `properties` can either be a [`Selection`](./selection.md) object or a plain Javascript object of selection properties.
|
||||
|
||||
|
||||
## Document Transforms
|
||||
|
Loading…
x
Reference in New Issue
Block a user