mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
Add support for historical paths
This commit is contained in:
parent
3a0be198db
commit
38a58ac7ac
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user