mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 04:18:48 +01:00
This commit is contained in:
parent
991d91098b
commit
04c86bc6b2
1 changed files with 2 additions and 1 deletions
|
|
@ -651,7 +651,8 @@ export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range:
|
|||
action: "insert",
|
||||
id: parentLiItemElement.getAttribute("data-node-id"),
|
||||
data: parentLiItemElement.outerHTML,
|
||||
previousID: parentLiItemElement.previousElementSibling.getAttribute("data-node-id")
|
||||
previousID: parentLiItemElement.previousElementSibling?.getAttribute("data-node-id"),
|
||||
parentID: parentLiItemElement.parentElement.getAttribute("data-node-id"),
|
||||
});
|
||||
parentLiItemElement.remove();
|
||||
} else if (liElement.childElementCount === 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue