Historyobjects hold all of the operations that are applied to a value, so they can be undone or redone as necessary.
HistoryEditorcontains helpers for history-enabled editors.
withHistoryplugin keeps track of the operation history of a Slate editor as operations are applied to it, using undo and redo stacks.
withHistoryshould be applied inside. For example: