forked from github/dataease
fix(数据大屏): 修复组合后的富文本,复制整个组合后无法双击修改富文本内容问题 #11437
This commit is contained in:
parent
beb51d7278
commit
32a6a95508
@ -390,14 +390,16 @@ const editActive = computed<boolean>(() => {
|
||||
})
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user