Adds React and DOM specific behaviors to the editor.
When used with withHistory, withReact should be applied outside. For example:
const [editor] = useState(() => withReact(withHistory(createEditor())))
clipboardFormatKeyoption allows you to customize the
DataTransfertype when Slate data is copied to the clipboard. By default, it is
application/x-slate-fragmentbut it can be customized using this option.
This can be useful when a user copies from one Slate editor to a differently configured Slate editor. This could cause nodes to be inserted which are not correctly typed for the receiving editor, corrupting the document. By customizing the
clipboardFormatKeyone can ensure that the raw JSON data isn't cpied between editors with different schemas.