diff --git a/src/core/view/components/editor/index.vue b/src/core/view/components/editor/index.vue index 227c01dc3da81e8e666a48a9f07b7e7b4d07fbcf..0dfe3f9ea0d838cf751a8bca3de3adafdc837c91 100644 --- a/src/core/view/components/editor/index.vue +++ b/src/core/view/components/editor/index.vue @@ -241,10 +241,14 @@ export default { } const quill = this.quill = new Quill(this.$el, options) const $el = quill.root - const events = ['focus', 'blur'] + const events = ['focus', 'blur', 'input'] events.forEach(name => { $el.addEventListener(name, ($event) => { - this.$trigger(name, $event, this.getContents()) + if (name === 'input') { + $event.stopPropagation() + } else { + this.$trigger(name, $event, this.getContents()) + } }) }) quill.on(Quill.events.TEXT_CHANGE, () => {