Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/16728

Vanessae894244a7303
diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.ts
index 5e1bb52f89..09aed8e1db 100644
--- a/app/src/protyle/wysiwyg/getBlock.ts
+++ b/app/src/protyle/wysiwyg/getBlock.ts
@@ -100,6 +100,8 @@ export const getContenteditableElement = (element: Element): Element => {
return blockElement.querySelector("table");
} else if ("NodeCodeBlock" === type && blockElement.classList.contains("code-block")) {
return blockElement.querySelector(".hljs").lastElementChild;
+ } else if ("NodeAttributeView" === type) {
+ return blockElement.querySelector(".av__title");
} else if (["NodeBlockQueryEmbed", "NodeMathBlock", "NodeHTMLBlock"].includes(type)) {
return undefined;
} else if (blockElement.getAttribute("data-node-id")) {