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: fix https://github.com/siyuan-note/siyuan/issues/9682
Vanessa54537af39060
diff --git a/app/src/protyle/wysiwyg/enter.ts b/app/src/protyle/wysiwyg/enter.tsindex dad111f676..f800227ca2 100644--- a/app/src/protyle/wysiwyg/enter.ts+++ b/app/src/protyle/wysiwyg/enter.ts@@ -353,10 +353,6 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyleremoveEmptyNode(newElement);return true;}- if (range.toString() === "" && range.startContainer.nodeType === 3 && range.startContainer.textContent === Constants.ZWSP && range.startOffset === 0) {- // 图片后的零宽空格前回车 https://github.com/siyuan-note/siyuan/issues/5690- range.setStart(range.startContainer, 1);- }const wbrElement = document.createElement("wbr")range.insertNode(wbrElement);const html = blockElement.outerHTML;@@ -379,6 +375,7 @@ export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle// https://github.com/siyuan-note/siyuan/issues/3850// https://github.com/siyuan-note/siyuan/issues/6018// https://github.com/siyuan-note/siyuan/issues/9682+ // 图片后的零宽空格前回车 https://github.com/siyuan-note/siyuan/issues/5690const enterElement = document.createElement("div");enterElement.innerHTML = protyle.lute.SpinBlockDOM(editableElement.parentElement.outerHTML);editableElement.innerHTML = enterElement.querySelector('[contenteditable="true"]').innerHTML;