mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
update state.moveTo() reference
This commit is contained in:
@@ -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`.
|
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`
|
||||||
`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
|
## Document Transforms
|
||||||
|
Reference in New Issue
Block a user