From 32a6a955086eccba16e002cca7bc26d496dacc55 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 10 Oct 2024 11:40:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E5=90=88=E5=90=8E=E7=9A=84=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=EF=BC=8C=E5=A4=8D=E5=88=B6=E6=95=B4=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=90=8E=E6=97=A0=E6=B3=95=E5=8F=8C=E5=87=BB?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=8C=E6=96=87=E6=9C=AC=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#11437?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rich-text/DeRichTextView.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 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 4263a24ffb..c3e5bbaefe 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -390,14 +390,16 @@ const editActive = computed(() => { }) const setEdit = () => { - if (computedCanEdit.value && editActive.value) { - canEdit.value = true - element.value['editing'] = true - myValue.value = element.value.propValue.textValue - const ed = tinymce.editors[tinymceId] - ed.setContent(myValue.value) - reShow() - } + setTimeout(() => { + if (computedCanEdit.value && editActive.value) { + canEdit.value = true + element.value['editing'] = true + myValue.value = element.value.propValue.textValue + const ed = tinymce.editors[tinymceId] + ed.setContent(myValue.value) + reShow() + } + }) } const reShow = () => { editShow.value = false