Add support for historical paths

This commit is contained in:
fearclear 2019-11-01 11:25:13 +08:00
parent 3a0be198db
commit 38a58ac7ac

View File

@ -1,5 +1,5 @@
import { Extension } from 'tiptap'
import { history, undo, redo } from 'prosemirror-history'
import { history, undo, redo, undoDepth, redoDepth } from 'prosemirror-history'
export default class History extends Extension {
@ -37,6 +37,8 @@ export default class History extends Extension {
return {
undo: () => undo,
redo: () => redo,
undoDepth: () => undoDepth,
redoDepth: () => redoDepth,
}
}