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

update docs

This commit is contained in:
Ian Storm Taylor 2016-07-11 13:31:08 -07:00
parent 4c435913cf
commit 081bfa7306

View File

@ -39,9 +39,33 @@ An array of [`Plugins`](../plugins) that define the editor's behavior.
A [`State`](../models/state) object representing the current state of the editor.
#### Plugin-like properties...
#### `...`
All other properties of the editor are equivalent to the properties of a [`Plugin`](../plugins)
All other properties of the editor are equivalent to the properties of a [`Plugin`](../plugins).
They are convenience properties, such that passing any of them will be treated equivalently to passing them on the first plugin in the stack with those properties.
For example:
```js
<Editor
onChange={myFunction}
state={state}
/>
```
Is equivalent to:
```js
const plugins = [
{ myFunction }
]
<Editor
plugins={plugins}
state={state}
/>
```
### Methods