1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 20:40:19 +02:00

update docs

This commit is contained in:
Ian Storm Taylor
2016-07-11 13:35:34 -07:00
parent 005b83591c
commit 1a7e2178e5

View File

@@ -48,7 +48,7 @@ They are convenience properties, such that passing any of them will be treated e
For example:
```js
const plugins = [myPlugin]
const plugins = [somePlugin]
<Editor
onChange={myOnChangeHandler}
@@ -60,11 +60,13 @@ const plugins = [myPlugin]
Is equivalent to passing an additional, first-priority plugin, like:
```js
const editorPlugin = {
onChange: myOnChangeHandler
}
const plugins = [
{
onChange: myOnChangeHandler
},
myPlugin
editorPlugin,
somePlugin
]
<Editor