Merge pull request #511 from fearclear/add-history-depth

Add support for historical paths
This commit is contained in:
Philipp Kühn 2019-12-02 22:26:41 +01:00 committed by GitHub
commit 58d91a3631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
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 +39,8 @@ export default class History extends Extension {
return {
undo: () => undo,
redo: () => redo,
undoDepth: () => undoDepth,
redoDepth: () => redoDepth,
}
}