withHistoryplugin adds the
Editorinstance and keeps track of the operation history of a Slate editor as operations are applied to it, using undo and redo stacks.
HistoryEditorinterface to an instance of any
When used with
withHistoryshould be applied inside. For example:
const [editor] = useState(() => withReact(withHistory(createEditor())))