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); };