From 38a58ac7ac68eed78027e634bf25178786c56c8a Mon Sep 17 00:00:00 2001 From: fearclear Date: Fri, 1 Nov 2019 11:25:13 +0800 Subject: [PATCH 1/2] 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, } } From c566fa619f6bd77ab88f48149c96654b7ff4bc4c Mon Sep 17 00:00:00 2001 From: fearclear Date: Fri, 1 Nov 2019 17:20:01 +0800 Subject: [PATCH 2/2] fixed line-break --- 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 0e1c04178..9700dd9c4 100644 --- a/packages/tiptap-extensions/src/extensions/History.js +++ b/packages/tiptap-extensions/src/extensions/History.js @@ -1,5 +1,7 @@ import { Extension } from 'tiptap' -import { history, undo, redo, undoDepth, redoDepth } from 'prosemirror-history' +import { + history, undo, redo, undoDepth, redoDepth, +} from 'prosemirror-history' export default class History extends Extension {