mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
update docs
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user