This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化meditor更新

old
宇天 2021-05-18 18:19:22 +08:00
parent b91cef6ff1
commit 7c765768d0
1 changed files with 2 additions and 0 deletions

View File

@ -690,6 +690,7 @@ export default class Meditor {
dom.focus()
}
this.value = dom.value
this.dispatchEvent(new CustomEvent('input'))
}
/**
* [selection 获取选中的文本]
@ -766,6 +767,7 @@ export default class Meditor {
this.__EDITOR__.value = val
if (this.state.preview) {
this.__VIEW__.md = val
this.dispatchEvent(new CustomEvent('input'))
}
}