mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
This commit is contained in:
parent
7898a21d85
commit
3883210332
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ export const breakList = (protyle: IProtyle, blockElement: Element, range: Range
|
|||
id: listItemId,
|
||||
action: "insert",
|
||||
data: listItemElement.outerHTML,
|
||||
previousID: listItemElement.previousElementSibling.getAttribute("data-node-id"),
|
||||
previousID: listItemElement.previousElementSibling?.getAttribute("data-node-id"),
|
||||
parentID: listItemElement.parentElement.getAttribute("data-node-id")
|
||||
});
|
||||
listItemElement.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue