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/14955

Vanessaa83b9ee11411
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 7d2fb60f4b..018c0a496a 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -621,7 +621,8 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
}, 450);
}
});
- const attrElement = item.querySelector(".protyle-attr");
+ const attrElements = item.querySelectorAll(".protyle-attr");
+ const attrElement = attrElements[attrElements.length - 1];
if (data.new["custom-avs"] && !data.new["av-names"]) {
nodeAttrHTML += attrElement.querySelector(".protyle-attr--av")?.outerHTML || "";
}