1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-19 21:01:57 +02:00

update docs

This commit is contained in:
Ian Storm Taylor 2016-07-11 15:12:15 -07:00
parent cfb0273b15
commit 4782a97840

View File

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