Tang há 3 anos atrás
pai
commit
b2c497b569
1 ficheiros alterados com 6 adições e 0 exclusões
  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.$nextTick(function() {
+        this.Quill.blur();
+        this.Quill.enable(true);
+      });
       this.Quill.on("text-change", (delta, oldDelta, source) => {
         const html = this.$refs.editor.children[0].innerHTML;
         const text = this.Quill.getText();