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

Vanessae436868c0d5a
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 48019da466..9654b5d786 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -1611,11 +1611,13 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertBefore.custom, event)) {
+ nodeElement.querySelector(".img--select")?.classList.remove("img--select");
insertEmptyBlock(protyle, "beforebegin");
event.preventDefault();
return true;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertAfter.custom, event)) {
+ nodeElement.querySelector(".img--select")?.classList.remove("img--select");
insertEmptyBlock(protyle, "afterend");
event.preventDefault();
event.stopPropagation();