From 38a58ac7ac68eed78027e634bf25178786c56c8a Mon Sep 17 00:00:00 2001 From: fearclear Date: Fri, 1 Nov 2019 11:25:13 +0800 Subject: [PATCH] Add support for historical paths --- packages/tiptap-extensions/src/extensions/History.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/tiptap-extensions/src/extensions/History.js b/packages/tiptap-extensions/src/extensions/History.js index 6344c306a..0e1c04178 100644 --- a/packages/tiptap-extensions/src/extensions/History.js +++ b/packages/tiptap-extensions/src/extensions/History.js @@ -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, } }