mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
Docs/toc undo fix (#2484)
* Update Component.jsx Added `transaction.setMeta("addToHistory", false)` to fix undo bug when deleting headings * Update Component.vue Added `transaction.setMeta("addToHistory", false)` to fix undo bug when deleting headings
This commit is contained in:
parent
886cd339b9
commit
54b6c395cd
@ -28,6 +28,7 @@ export default ({ editor }) => {
|
||||
}
|
||||
})
|
||||
|
||||
transaction.setMeta("addToHistory", false)
|
||||
transaction.setMeta('preventUpdate', true)
|
||||
|
||||
editor.view.dispatch(transaction)
|
||||
|
@ -55,6 +55,7 @@ export default {
|
||||
}
|
||||
})
|
||||
|
||||
transaction.setMeta("addToHistory", false)
|
||||
transaction.setMeta('preventUpdate', true)
|
||||
|
||||
this.editor.view.dispatch(transaction)
|
||||
|
Loading…
Reference in New Issue
Block a user