From cf740d9605d8d18c70c5e12304cac51d91e1055c Mon Sep 17 00:00:00 2001 From: paulGao Date: Mon, 17 Jan 2022 16:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8xss=E8=BF=87=E6=BB=A4=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/my-components/lili/editor.vue | 7 ++----- seller/src/views/my-components/lili/editor.vue | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/manager/src/views/my-components/lili/editor.vue b/manager/src/views/my-components/lili/editor.vue index f6e5bfcc..a628ef89 100644 --- a/manager/src/views/my-components/lili/editor.vue +++ b/manager/src/views/my-components/lili/editor.vue @@ -78,11 +78,7 @@ export default { editor = new E(`#${this.id}`); // 编辑内容绑定数据 editor.config.onchange = (html) => { - if (this.openXss) { - this.data = xss(html); - } else { - this.data = html; - } + this.data = html; this.$emit("input", this.data); this.$emit("on-change", this.data); }; @@ -166,6 +162,7 @@ export default { }, // 保存 editHTMLOk() { + console.log(this.dataEdit); editor.txt.html(this.dataEdit); this.$emit("input", this.data); this.$emit("on-change", this.data); diff --git a/seller/src/views/my-components/lili/editor.vue b/seller/src/views/my-components/lili/editor.vue index a866c059..03d8e3c9 100644 --- a/seller/src/views/my-components/lili/editor.vue +++ b/seller/src/views/my-components/lili/editor.vue @@ -76,11 +76,7 @@ export default { this.editor = new E(`#${this.eid}`); // 编辑内容绑定数据 this.editor.config.onchange = (html) => { - if (this.openXss) { - this.data = xss(html); - } else { - this.data = html; - } + this.data = html; this.$emit("input", this.data); this.$emit("on-change", this.data); };