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({ this.editor = new Editor({
extensions: defaultExtensions(), extensions: defaultExtensions(),
content: this.value, content: this.value,
}) onUpdate: () => {
this.$emit('input', this.editor.getHTML())
this.editor.on('update', () => { },
this.$emit('input', this.editor.getHTML())
}) })
}, },

View File

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