mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 10:44:02 +02:00
Added comments to with-history and with-react to help fix TypeScript errors
This commit is contained in:
@@ -8,6 +8,11 @@ import { isDOMText, getPlainText } from '../utils/dom'
|
||||
|
||||
/**
|
||||
* `withReact` adds React and DOM specific behaviors to the editor.
|
||||
*
|
||||
* If you are using TypeScript, you must extend Slate's CustomTypes to use
|
||||
* this plugin.
|
||||
*
|
||||
* See https://docs.slatejs.org/concepts/11-typescript to learn how.
|
||||
*/
|
||||
|
||||
export const withReact = <T extends Editor>(editor: T) => {
|
||||
|
Reference in New Issue
Block a user