fix notes problem

Signed-off-by: ylh <yanlianhui1@huawei.com>
This commit is contained in:
ylh 2022-06-02 11:09:48 +08:00
parent 7d3a3fee47
commit 74f0b8cc23

View File

@ -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">&nbsp;</span>';
document.execCommand('insertHTML', false, html);
};