From 3c4ae6258487d203a7e0ddbb7fcb1b38e4d10b8f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 28 Jun 2024 18:11:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=97=B6=E6=9C=89=E6=97=B6=E6=8E=A7=E5=88=B6=E5=8F=B0=E4=BC=9A?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 4cd2dad128..c7c4b1d194 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -154,7 +154,7 @@ watch( if (!val) { const ed = tinymce.editors[tinymceId] if (canEdit.value) { - element.value.propValue.textValue = ed.getContent() + element.value.propValue.textValue = ed?.getContent() } element.value['editing'] = false canEdit.value = false @@ -170,7 +170,7 @@ watch( () => { if (canEdit.value) { const ed = tinymce.editors[tinymceId] - element.value.propValue.textValue = ed.getContent() + element.value.propValue.textValue = ed?.getContent() } if (initReady.value && canEdit.value) { snapshotStore.recordSnapshotCache('renderChart', element.value.id)