Skip to content

Commit

Permalink
docs: add chang.snapshotSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujinxuan committed Jan 17, 2018
1 parent 62ffb46 commit 91675d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/slate/change.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,9 @@ Move forward one step in the history.
`undo() => Change`

Move backward one step in the history.


### `snapshotSelection`
`snapshotSelection() => Change`

snapshot `value.selection` for `undo` purpose, useful with delete operations like `removeNodeByKey(focusBlock.key).undo()`

0 comments on commit 91675d3

Please sign in to comment.