mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 10:29:48 +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`
|
||||
|
||||
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