mirror of
https://github.com/openharmony/applications_notes.git
synced 2026-07-20 05:34:03 -04:00
!270 4.1 Release 新建备忘录,点击完成,界面光标扔处于输入状态
Merge pull request !270 from zhangjintao/cherry-pick-1719213762
This commit is contained in:
@@ -506,6 +506,10 @@ RICH_EDITOR.getFocus = function () {
|
||||
return document.getElementById('editorjs_box').focus();
|
||||
}
|
||||
|
||||
RICH_EDITOR.getBlur = function () {
|
||||
return document.getElementById('editorjs_box').blur();
|
||||
}
|
||||
|
||||
document.getElementById('editorjs_box').addEventListener('click', () => {
|
||||
if (callBackToApp.getBreakPoint() === 'sm') {
|
||||
document.getElementById('buttonBox').style.display = 'flex';
|
||||
|
||||
@@ -761,6 +761,7 @@ export struct ToolBarComp {
|
||||
.onClick(() => {
|
||||
// 保存笔记信息到数据库
|
||||
this.controllerShow.runJavaScript("getHtmlContent()")
|
||||
this.controllerShow.runJavaScript("javascript:RICH_EDITOR.getBlur()")
|
||||
if (this.selectedNoteData.title == "标题" && this.selectedNoteData.content_text == "") {
|
||||
LogUtil.info(TAG, "note is empty,save note failed")
|
||||
}
|
||||
|
||||
@@ -618,6 +618,7 @@ export struct ToolBarComp {
|
||||
// 保存笔记信息到数据库
|
||||
this.controllerShow.runJavaScript("getHtmlContent()")
|
||||
this.editModel = false
|
||||
this.controllerShow.runJavaScript("javascript:RICH_EDITOR.getBlur()")
|
||||
} catch (error) {
|
||||
LogUtil.info(TAG, 'tick_thin error')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user