Vanessa 2024-12-27 21:54:22 +08:00
parent 91a768e4e7
commit 49d9643eb4
2 changed files with 4 additions and 2 deletions

View file

@ -568,7 +568,9 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", `<span class="fn__space
label: window.siyuan.languages.unbindBlock,
icon: "iconLinkOff",
click() {
updateCellsValue(protyle, blockElement, keyCellElement.querySelector(".av__celltext").textContent, [keyCellElement]);
updateCellsValue(protyle, blockElement, {
content: keyCellElement.querySelector(".av__celltext").textContent,
}, [keyCellElement]);
}
});
}

View file

@ -977,7 +977,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
} else if (targetElement.classList.contains("av__row")) {
// 拖拽到属性视图内
const blockElement = hasClosestBlock(targetElement);
if (blockElement && sourceElements.length > 0) {
if (blockElement) {
let previousID = "";
if (targetClass.includes("dragover__bottom")) {
previousID = targetElement.getAttribute("data-id") || "";