Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/6398

Vanessa6104ba30357b
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index 0518feb72b..7428168fde 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -325,6 +325,12 @@ export const openFileAttr = (attrs: IObject, id: string, focusName = "bookmark")
item.editor.protyle.title.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;
item.editor.protyle.wysiwyg.renderCustom(attrsResult);
}
+ // https://github.com/siyuan-note/siyuan/issues/6398
+ item.editor.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${id}"][data-subtype="d"]`).forEach(item => {
+ fetchPost("/api/block/getRefText", {id: id}, (response) => {
+ item.innerHTML = response.data;
+ });
+ });
});
/// #endif
fetchPost("/api/attr/resetBlockAttrs", {id, attrs: attrsResult}, () => {