Vanessa 2025-07-27 19:10:43 +08:00
parent 48c64f98f4
commit 6d7637850a
7 changed files with 74 additions and 30 deletions

View file

@ -420,6 +420,7 @@ draggable="true">${genSelectItemHTML("selected", targetId, !target.querySelector
const blockID = target.querySelector(".popover__block").getAttribute("data-id");
const content = target.querySelector("b").textContent;
const rowId = Lute.NewNodeID();
const bodyElement = hasClosestByClassName(cellElements[0], "av__body");
transaction(protyle, [{
action: "insertAttrViewBlock",
ignoreFillFilter: true,
@ -430,6 +431,7 @@ draggable="true">${genSelectItemHTML("selected", targetId, !target.querySelector
content
}],
blockID,
groupID: bodyElement ? bodyElement.getAttribute("data-group-id") : "",
}, {
action: "doUpdateUpdated",
id: blockID,