mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Merge pull request #511 from fearclear/add-history-depth
Add support for historical paths
This commit is contained in:
commit
58d91a3631
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user