mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 00:36:41 +02:00
update docs
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
The top-level React component that renders the Slate editor itself.
|
The top-level React component that renders the Slate editor itself.
|
||||||
|
|
||||||
The editor takes a `State` instance that contains it's content and selection, and an array of `plugins` that define its behavior.
|
|
||||||
|
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
@@ -51,7 +49,9 @@ These properties are actually just a convenience—an implicit plugin defintion.
|
|||||||
For example, these two snippets of code are equivalent:
|
For example, these two snippets of code are equivalent:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const plugins = [somePlugin]
|
const plugins = [
|
||||||
|
somePlugin
|
||||||
|
]
|
||||||
|
|
||||||
<Editor
|
<Editor
|
||||||
onKeyDown={myKeyHandler}
|
onKeyDown={myKeyHandler}
|
||||||
|
Reference in New Issue
Block a user