An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16066
Vanessa20c2f946f900
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 39bab58e35..cf381b357b 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -926,7 +926,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {if (nextSibling.nodeType === 1 && nextSibling.classList.contains("img")) {// 光标需在图片前 https://github.com/siyuan-note/siyuan/issues/12452const textPosition = getSelectionOffset(range.startContainer, protyle.wysiwyg.element, range);- if (textPosition.start === range.startContainer.textContent.length) {+ if (textPosition.start === range.startContainer.textContent.length ||+ (textPosition.start === 0 && range.startContainer.textContent === Constants.ZWSP)) {removeImage(nextSibling as Element, nodeElement, range, protyle);event.stopPropagation();event.preventDefault();