Skip to content

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

:art: Support cross-document undo https://github.com/siyuan-note/siyuan/issues/4866

Daniel1673a341bff5
diff --git a/app/src/protyle/undo/globalUndo.ts b/app/src/protyle/undo/globalUndo.ts
index 2612667914..7e6d72e4b2 100644
--- a/app/src/protyle/undo/globalUndo.ts
+++ b/app/src/protyle/undo/globalUndo.ts
@@ -174,7 +174,7 @@ export const requestUndo = async (protyle: IProtyle) => {
protyle.wysiwyg.element.addEventListener("beforeinput", blockInput, true);
const confirmed = await new Promise<boolean>((resolve) => {
confirmDialog(`⚠️ ${window.siyuan.languages.undo}`,
- `${window.siyuan.languages.undoCrossDocConfirm}<br>${names.join(" / ")}`,
+ `${window.siyuan.languages.undoCrossDocConfirm}<div style="margin-top: 8px;">${names.map(n => `• ${n}`).join("<br>")}</div>`,
() => resolve(true),
() => resolve(false));
});