refactoring

This commit is contained in:
Philipp Kühn
2021-03-24 22:57:26 +01:00
parent a0d71ed189
commit b6f7c41726
2 changed files with 6 additions and 8 deletions

View File

@@ -40,10 +40,9 @@ export default {
this.editor = new Editor({
extensions: defaultExtensions(),
content: this.value,
})
this.editor.on('update', () => {
this.$emit('input', this.editor.getHTML())
onUpdate: () => {
this.$emit('input', this.editor.getHTML())
},
})
},