Skip to content

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

:bug: 多项折叠

Vanessa85d2faa15840
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 1c753cfdd8..92ddf8146a 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -121,6 +121,13 @@ const promiseTransaction = () => {
if (gutterFoldElement) {
gutterFoldElement.removeAttribute("disabled");
}
+ // 仅在 alt+click 箭头折叠时才会触发
+ protyle.wysiwyg.element.querySelectorAll('[data-type="NodeBlockQueryEmbed"]').forEach((item) => {
+ if (item.querySelector(`[data-node-id="${doOperations[0].id}"]`)) {
+ item.removeAttribute("data-render")
+ blockRender(protyle, item);
+ }
+ });
return;
}