1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 22:21:20 +02:00

Fix typo in plugin.md (#753)

This commit is contained in:
Rocky Meza
2017-04-24 21:23:53 -04:00
committed by Ian Storm Taylor
parent 8cb3379eb8
commit 3ca977e26a

View File

@@ -224,7 +224,7 @@ This allows you to stack up changes across the entire plugin stack.
The `onBeforeChange` handler isn't a native browser event handler. Instead, it is invoked whenever the editor receives a new state and before propagating a new state to `onChange`. Returning a new state will update the editor's state before rendering, continuing down the plugin stack. The `onBeforeChange` handler isn't a native browser event handler. Instead, it is invoked whenever the editor receives a new state and before propagating a new state to `onChange`. Returning a new state will update the editor's state before rendering, continuing down the plugin stack.
Like `onChange`, `onBeforeChange` is cummulative. Like `onChange`, `onBeforeChange` is cumulative.
### `render` ### `render`
`Function render(props: Object, state: State, editor: Editor) => Object || Void` `Function render(props: Object, state: State, editor: Editor) => Object || Void`