mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
This commit is contained in:
parent
466aa2233c
commit
a9651ad07e
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ export const breakList = (protyle: IProtyle, blockElement: Element, range: Range
|
|||
action: "insert",
|
||||
data: listItemElement.parentElement.outerHTML,
|
||||
previousID: listItemElement.parentElement.previousElementSibling?.getAttribute("data-node-id"),
|
||||
parentID: listItemElement.parentElement.parentElement.getAttribute("data-node-id")
|
||||
parentID: listItemElement.parentElement.parentElement.getAttribute("data-node-id") || protyle.block.rootID
|
||||
});
|
||||
listItemElement.parentElement.remove();
|
||||
doOperations.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue