fix(仪表板): 修复富文本视图部分情况下字段要删两次的情况

This commit is contained in:
wangjiahao 2022-09-26 16:12:47 +08:00
parent 65ff44a85f
commit b2f752fde0

View File

@ -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)
}
},