1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 11:42:53 +02:00

update docs

This commit is contained in:
Ian Storm Taylor
2016-07-11 13:50:31 -07:00
parent f17a2c0e94
commit 5314f20776

View File

@@ -79,10 +79,10 @@ const plugins = [
### Methods
#### `getState()`
#### `getState() => State`
Return the editor's current internal state.
#### `onChange(state: State)`
#### `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.