Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13638

Vanessa49d9643eb41f
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index a1f7270a5f..16d01ae58e 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -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]);
}
});
}
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index 42a1d8f19c..42a9415e95 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -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") || "";