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

Vanessa7994ea861a99
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 9654b5d786..74c3674b17 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -1611,6 +1611,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertBefore.custom, event)) {
+ // https://github.com/siyuan-note/siyuan/issues/14290#issuecomment-2846594701
nodeElement.querySelector(".img--select")?.classList.remove("img--select");
insertEmptyBlock(protyle, "beforebegin");
event.preventDefault();