From b8420fce3f561fb85324976ffb173d255097f057 Mon Sep 17 00:00:00 2001 From: Eric Edem Date: Sun, 2 Dec 2018 13:12:41 -0800 Subject: [PATCH] docs: replace change with editor (#2433) Just in a couple places. --- docs/reference/slate/commands.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/slate/commands.md b/docs/reference/slate/commands.md index c0d6651a3..d457438f4 100644 --- a/docs/reference/slate/commands.md +++ b/docs/reference/slate/commands.md @@ -563,7 +563,7 @@ Move backward one step in the history. `snapshotSelection() => Editor` -Snapshot `value.selection` for `undo` purposes, useful with delete operations like `change.removeNodeByKey(focusBlock.key).undo()`. +Snapshot `value.selection` for `undo` purposes, useful with delete operations like `editor.removeNodeByKey(focusBlock.key).undo()`. ## Miscellaneous Commands @@ -598,8 +598,8 @@ editor.withoutNormalizing(() => { By default all new operations are saved to the editor's history. If you have changes that you don't want to show up in the history when the user presses cmd+z, you can use `withoutSaving` to skip those changes. ```js -change.withoutSaving(() => { - change.setDecorations(decorations) +editor.withoutSaving(() => { + editor.setDecorations(decorations) }) ```