An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: https://github.com/siyuan-note/siyuan/pull/14008
Vanessadff19ad0959c
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex c9fe4bba01..3ea0ac8a6c 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -416,9 +416,8 @@ export class WYSIWYG {html = tempElement.innerHTML;}// 不能使用 commonAncestorContainer https://ld246.com/article/1643282894693- const codeBlockElement = hasClosestByAttribute(range.startContainer, "data-type", "NodeCodeBlock");textPlain = tempElement.textContent;- if (codeBlockElement) {+ if (hasClosestByAttribute(range.startContainer, "data-type", "NodeCodeBlock")) {if (range.endContainer.textContent.length === range.endOffset &&(range.endContainer.parentElement.getAttribute("spellcheck") ? !range.endContainer.nextSibling : !range.endContainer.parentElement.nextSibling)) {textPlain = textPlain.replace(/\n$/, "");