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

Vanessa39220af36cf1
diff --git a/app/src/util/backForward.ts b/app/src/util/backForward.ts
index c84fd9cd1d..7a58abfe62 100644
--- a/app/src/util/backForward.ts
+++ b/app/src/util/backForward.ts
@@ -163,7 +163,6 @@ const focusStack = async (app: App, stack: IBackStack) => {
onGet({
data: getResponse,
protyle: stack.protyle,
- action: [Constants.CB_GET_FOCUS],
afterCB() {
Array.from(stack.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${stack.id}"]`)).find((item: HTMLElement) => {
if (!hasClosestByAttribute(item, "data-type", "NodeBlockQueryEmbed")) {
@@ -180,6 +179,7 @@ const focusStack = async (app: App, stack: IBackStack) => {
}
});
focusByOffset(getContenteditableElement(blockElement), stack.position.start, stack.position.end);
+ scrollCenter(stack.protyle, blockElement, true);
}
});
});