From 817b9c360e3743590bd3e0d13dd1eec7197f131b Mon Sep 17 00:00:00 2001 From: Serge Gao Date: Tue, 16 Oct 2018 11:13:35 +0800 Subject: [PATCH] fix blur --- src/editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor.vue b/src/editor.vue index 46f7763..a321dcc 100644 --- a/src/editor.vue +++ b/src/editor.vue @@ -81,7 +81,9 @@ // Instance this.quill = new Quill(this.$refs.editor, this._options) - + this.quill.root.addEventListener('blur', e => + this.quill.setSelection(null) + ) this.quill.enable(false) // Set editor content