This commit is contained in:
Vanessa 2022-06-16 21:26:18 +08:00
parent 466aa2233c
commit a9651ad07e

View file

@ -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({