mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
Document: add change.snapshotSelection
in the change.md (#1534)
* docs: add chang.snapshotSelection * Minor style tweaks
This commit is contained in:
committed by
Zach Schneider
parent
bc7acefff2
commit
e6c7934cb9
@@ -474,3 +474,8 @@ Move forward one step in the history.
|
|||||||
`undo() => Change`
|
`undo() => Change`
|
||||||
|
|
||||||
Move backward one step in the history.
|
Move backward one step in the history.
|
||||||
|
|
||||||
|
### `snapshotSelection`
|
||||||
|
`snapshotSelection() => Change`
|
||||||
|
|
||||||
|
Snapshot `value.selection` for `undo` purposes, useful with delete operations like `removeNodeByKey(focusBlock.key).undo()`
|
||||||
|
Reference in New Issue
Block a user