mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 22:02:05 +02:00
update docs
This commit is contained in:
parent
4c435913cf
commit
081bfa7306
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user