mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-12-11 09:38:51 +00:00
fix notes problem
Signed-off-by: ylh <yanlianhui1@huawei.com>
This commit is contained in:
parent
7d3a3fee47
commit
74f0b8cc23
@ -297,7 +297,7 @@ RICH_EDITOR.setTodo = function () {
|
||||
var parent = document.getElementById('editorjs');
|
||||
var isContentEmpty = parent.innerHTML.trim().length === 0 || parent.innerHTML === '<br>';
|
||||
var html = (isContentEmpty ? '' : '<br/>')
|
||||
+ '<input name="checkbox" type="checkbox" onclick="onCheckChange(this)" class="note-checkbox">'
|
||||
+ '<input name="checkbox" type="checkbox" style="width:36px;height:36px" onclick="onCheckChange(this)" class="note-checkbox">'
|
||||
+ '<span class="note-checkbox-txt"> </span>';
|
||||
document.execCommand('insertHTML', false, html);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user