update common/component/src/main/ets/components/NoteContentComp.ets.

Signed-off-by: nobbo <gaoshang22@huawei.com>
This commit is contained in:
nobbo
2022-08-15 09:08:23 +00:00
committed by Gitee
parent 742b0a51bd
commit 7bcec9c0d5
@@ -142,7 +142,7 @@ export struct NoteContentComp {
this.editContentFlag = true
}
LogUtil.info(TAG, "finish loadurl")
if(this.selectedNoteData.content_text){
if(this.selectedNoteData){
this.controllerShow.runJavaScript({
script: "RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')"
})