forked from github/dataease
Merge pull request #3185 from dataease/pr@dev@fix_rich-text-delete
fix(仪表板): 修复富文本视图部分情况下字段要删两次的情况
This commit is contained in:
commit
1322dd9ab7
@ -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)
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user