Tang 3 лет назад
Родитель
Сommit
b2c497b569
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/components/Editor/index.vue

+ 6 - 0
src/components/Editor/index.vue

@@ -169,7 +169,13 @@ export default {
           }
           }
         });
         });
       }
       }
+
+      this.Quill.enable(false);
       this.Quill.pasteHTML(this.currentValue);
       this.Quill.pasteHTML(this.currentValue);
+      this.$nextTick(function() {
+        this.Quill.blur();
+        this.Quill.enable(true);
+      });
       this.Quill.on("text-change", (delta, oldDelta, source) => {
       this.Quill.on("text-change", (delta, oldDelta, source) => {
         const html = this.$refs.editor.children[0].innerHTML;
         const html = this.$refs.editor.children[0].innerHTML;
         const text = this.Quill.getText();
         const text = this.Quill.getText();