From cfb0273b159e8c5894f11242498048dd6d2a4b49 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 11 Jul 2016 15:11:46 -0700 Subject: [PATCH] update docs --- docs/reference/components/editor.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/reference/components/editor.md b/docs/reference/components/editor.md index 9e4d5f8b5..f85411de7 100644 --- a/docs/reference/components/editor.md +++ b/docs/reference/components/editor.md @@ -79,10 +79,14 @@ const plugins = [ ### Methods -#### `getState() => State` +#### getState + +`getState() => State` Return the editor's current internal state. -#### `onChange(state: State) => Void` +#### onChange + +`onChange(state: State) => Void` Effectively the same as `setState`. Invoking this method will update the state of the editor, running it through all of it's plugins, and passing it the parent component, before it cycles back down as the new `state` property of the editor.