mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
This commit is contained in:
parent
bc238a245f
commit
287339c66c
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemen
|
|||
for (let index = sourceElements.length - 1; index >= 0; index--) {
|
||||
const item = sourceElements[index];
|
||||
const id = item.getAttribute("data-node-id");
|
||||
const parentID = item.parentElement.getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID;
|
||||
const parentID = getParentBlock(item).getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID;
|
||||
if (item.getAttribute("data-type") === "NodeListItem" && !newListId && !isSameLi) {
|
||||
newListId = Lute.NewNodeID();
|
||||
newListElement = document.createElement("div");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue