1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-11 09:43:58 +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: For example:
```js ```js
const plugins = [myPlugin] const plugins = [somePlugin]
<Editor <Editor
onChange={myOnChangeHandler} onChange={myOnChangeHandler}
@@ -60,11 +60,13 @@ const plugins = [myPlugin]
Is equivalent to passing an additional, first-priority plugin, like: Is equivalent to passing an additional, first-priority plugin, like:
```js ```js
const plugins = [ const editorPlugin = {
{
onChange: myOnChangeHandler onChange: myOnChangeHandler
}, }
myPlugin
const plugins = [
editorPlugin,
somePlugin
] ]
<Editor <Editor