1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 12:14:14 +02:00

Remove plugins section from main SlateReact docs because it is redundant

This commit is contained in:
Sunny Hirai
2023-04-12 22:26:46 -07:00
parent 36abe94ded
commit 76544747e8

View File

@@ -80,20 +80,6 @@ The default custom leaf renderer.
A wrapper around the provider to handle `onChange` events, because the editor is a mutable singleton so it won't ever register as "changed" otherwise.
## Plugins
React-specific plugins for Slate editors
### `withReact(editor: Editor)`
Adds React and DOM specific behaviors to the editor.
When used with `withHistory`, `withReact` should be applied outside. For example:
```javascript
const [editor] = useState(() => withReact(withHistory(createEditor())))
```
## Utils
Private convenience modules