mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-23 07:30:27 +00:00
新建备忘录,点击完成,界面光标扔处于输入状态
Signed-off-by: zhangjintao <zhangjintao53@chinasoftinc.com>
This commit is contained in:
parent
92751875c2
commit
8e50f9f9a4
@ -508,6 +508,10 @@ RICH_EDITOR.getFocus = function () {
|
|||||||
return document.getElementById('editorjs_box').focus();
|
return document.getElementById('editorjs_box').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RICH_EDITOR.getBlur = function () {
|
||||||
|
return document.getElementById('editorjs_box').blur();
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById('editorjs_box').addEventListener('click', () => {
|
document.getElementById('editorjs_box').addEventListener('click', () => {
|
||||||
document.getElementById('buttonBox').style.display = 'flex';
|
document.getElementById('buttonBox').style.display = 'flex';
|
||||||
})
|
})
|
@ -757,6 +757,7 @@ export struct ToolBarComp {
|
|||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
// 保存笔记信息到数据库
|
// 保存笔记信息到数据库
|
||||||
this.controllerShow.runJavaScript("getHtmlContent()")
|
this.controllerShow.runJavaScript("getHtmlContent()")
|
||||||
|
this.controllerShow.runJavaScript("javascript:RICH_EDITOR.getBlur()")
|
||||||
if (this.selectedNoteData.title == "标题" && this.selectedNoteData.content_text == "") {
|
if (this.selectedNoteData.title == "标题" && this.selectedNoteData.content_text == "") {
|
||||||
LogUtil.info(TAG, "note is empty,save note failed")
|
LogUtil.info(TAG, "note is empty,save note failed")
|
||||||
}
|
}
|
||||||
|
@ -616,6 +616,7 @@ export struct ToolBarComp {
|
|||||||
// 保存笔记信息到数据库
|
// 保存笔记信息到数据库
|
||||||
this.controllerShow.runJavaScript("getHtmlContent()")
|
this.controllerShow.runJavaScript("getHtmlContent()")
|
||||||
this.editModel = false
|
this.editModel = false
|
||||||
|
this.controllerShow.runJavaScript("javascript:RICH_EDITOR.getBlur()")
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LogUtil.info(TAG, 'tick_thin error')
|
LogUtil.info(TAG, 'tick_thin error')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user