From 6dc8b4baa54963dfb5d8bcff2cfcb4ce42e928df Mon Sep 17 00:00:00 2001 From: Eric Edem Date: Thu, 27 Sep 2018 23:37:01 -0700 Subject: [PATCH] docs(plugins): update signature docs (#2057) `onChange()` also receives the editor as an argument. --- docs/reference/slate-react/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/slate-react/plugins.md b/docs/reference/slate-react/plugins.md index f76bc6771..5f918569a 100644 --- a/docs/reference/slate-react/plugins.md +++ b/docs/reference/slate-react/plugins.md @@ -118,7 +118,7 @@ _Note: This is **not** Slate's internal selection representation (although it mi ### `onChange` -`Function onChange(change: Change) => Any || Void` +`Function onChange(change: Change, editor: Editor) => Any || Void` The `onChange` handler isn't a native browser event handler. Instead, it is invoked whenever the editor value changes. This allows plugins to augment a change however they want.