Fix:修复极少数情况下输入中文时文本样式丢失的问题
This commit is contained in:
parent
23a3e26800
commit
32fc6937d2
@ -422,10 +422,13 @@ class RichText {
|
|||||||
|
|
||||||
// 中文输入结束
|
// 中文输入结束
|
||||||
onCompositionEnd() {
|
onCompositionEnd() {
|
||||||
if (!this.showTextEdit || !this.lostStyle) {
|
if (!this.showTextEdit) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isCompositing = false
|
this.isCompositing = false
|
||||||
|
if (!this.lostStyle) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.setTextStyleIfNotRichText(this.node)
|
this.setTextStyleIfNotRichText(this.node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user