add transaction event

This commit is contained in:
Philipp Kühn
2019-05-31 12:00:45 +02:00
parent b54a341dec
commit 2c86db883b
2 changed files with 10 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ export default class Collaboration extends Extension {
}
}, this.options.debounce)
this.editor.on('update', ({ state }) => {
this.editor.on('transaction', ({ state }) => {
this.getSendableSteps(state)
})
}