mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-27 01:30:27 +00:00
修复添加有序列表后无法取消的问题
Signed-off-by: zwx1126739 <zhanghong121@huawei.com>
This commit is contained in:
parent
7e2d66e53e
commit
83d6431d61
@ -82,14 +82,12 @@ RICH_EDITOR.getListStyle = function () {
|
||||
if (child.nodeName === 'OL') {
|
||||
console.info('insertOrderedList');
|
||||
document.execCommand('insertOrderedList', false, null);
|
||||
child.style['list-style'];
|
||||
break;
|
||||
return child.style['list-style'];
|
||||
}
|
||||
if (child.nodeName === 'UL') {
|
||||
console.info('insertUnorderedList');
|
||||
document.execCommand('insertUnorderedList', false, null);
|
||||
child.style['list-style'];
|
||||
break;
|
||||
return child.style['list-style'];
|
||||
}
|
||||
if (child.parentNode) {
|
||||
child = child.parentNode;
|
||||
@ -458,7 +456,6 @@ RICH_EDITOR.insertImageHtml = function (contents) {
|
||||
let img = document.createElement('img');
|
||||
img.src = contents;
|
||||
selection.getRangeAt(0).insertNode(img);
|
||||
return;
|
||||
};
|
||||
|
||||
document.addEventListener('click', (e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user