xiangpei
2025-02-26 e055f23263d9510b9a46b7f89d5f6c65f6f1ad89
src/components/Editor/index.vue
@@ -108,7 +108,7 @@
        if (val !== this.currentValue) {
          this.currentValue = val === null ? "" : val;
          if (this.Quill) {
            this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue);
            this.Quill.pasteHTML(this.currentValue);
          }
        }
      },
@@ -136,7 +136,7 @@
          }
        });
      }
      this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue);
      this.Quill.pasteHTML(this.currentValue);
      this.Quill.on("text-change", (delta, oldDelta, source) => {
        const html = this.$refs.editor.children[0].innerHTML;
        const text = this.Quill.getText();