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