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

Vanessa395c2e68759e
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index e632c5ffe3..c1fe00015f 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1326,13 +1326,13 @@ export class WYSIWYG {
if (target.tagName === "VIDEO" || target.tagName === "AUDIO" || event.inputType === "historyRedo") {
return;
}
- /// #if !BROWSER
if (event.inputType === "historyUndo") {
+ /// #if !BROWSER
getCurrentWindow().webContents.redo();
+ /// #endif
window.siyuan.menus.menu.remove();
return;
}
- /// #endif
const range = getEditorRange(this.element);
const blockElement = hasClosestBlock(range.startContainer);
if (!blockElement) {