From 76544747e84c5f7295b5333f2b61f914a85b769a Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Wed, 12 Apr 2023 22:26:46 -0700 Subject: [PATCH] Remove plugins section from main SlateReact docs because it is redundant --- docs/libraries/slate-react/README.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/docs/libraries/slate-react/README.md b/docs/libraries/slate-react/README.md index 50f00f951..329bd6287 100644 --- a/docs/libraries/slate-react/README.md +++ b/docs/libraries/slate-react/README.md @@ -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