From b2f752fde0a651783508896f2b5e5e7a12dda3d0 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 26 Sep 2022 16:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AF=8C=E6=96=87=E6=9C=AC=E8=A7=86=E5=9B=BE=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=83=85=E5=86=B5=E4=B8=8B=E5=AD=97=E6=AE=B5=E8=A6=81?= =?UTF-8?q?=E5=88=A0=E4=B8=A4=E6=AC=A1=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/custom-component/DeRichTextView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/canvas/custom-component/DeRichTextView.vue b/frontend/src/components/canvas/custom-component/DeRichTextView.vue index 006caeee76..cdf84b1ad9 100644 --- a/frontend/src/components/canvas/custom-component/DeRichTextView.vue +++ b/frontend/src/components/canvas/custom-component/DeRichTextView.vue @@ -110,13 +110,13 @@ export default { // 监听内容变化 active(val) { if (!val) { + const ed = tinymce.editors[this.tinymceId] if (this.canEdit) { - this.element.propValue.textValue = this.myValue + this.element.propValue.textValue = ed.getContent() } this.canEdit = false this.reShow() this.myValue = this.assignment(this.element.propValue.textValue) - const ed = tinymce.editors[this.tinymceId] ed.setContent(this.myValue) } },