Tang 4 роки тому
батько
коміт
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.$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();