mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-29 16:48:54 +08:00
fix update event
This commit is contained in:
parent
09870e1f45
commit
56b318ea38
@ -204,18 +204,19 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
dispatchTransaction(transaction) {
|
dispatchTransaction(transaction) {
|
||||||
|
this.state = this.state.apply(transaction)
|
||||||
|
this.view.updateState(this.state)
|
||||||
|
this.updateMenuActions()
|
||||||
|
|
||||||
if (!transaction.docChanged) {
|
if (!transaction.docChanged) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.state = this.state.apply(transaction)
|
|
||||||
this.view.updateState(this.state)
|
|
||||||
this.$emit('update', {
|
this.$emit('update', {
|
||||||
getHTML: this.getHTML,
|
getHTML: this.getHTML,
|
||||||
getJSON: this.getJSON,
|
getJSON: this.getJSON,
|
||||||
state: this.state,
|
state: this.state,
|
||||||
})
|
})
|
||||||
this.updateMenuActions()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getHTML() {
|
getHTML() {
|
||||||
|
Loading…
Reference in New Issue
Block a user