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/18529
Vanessa22ca662263b6
diff --git a/app/src/mobile/util/mobileAppUtil.ts b/app/src/mobile/util/mobileAppUtil.tsindex 5ec0d034e6..22db45b517 100644--- a/app/src/mobile/util/mobileAppUtil.ts+++ b/app/src/mobile/util/mobileAppUtil.ts@@ -31,7 +31,7 @@ export const canInput = (element: Element) => {}const wysiwygElement = hasClosestByClassName(element, "protyle-wysiwyg", true);if (wysiwygElement && wysiwygElement.getAttribute("data-readonly") === "false") {- return hasClosestByAttribute(element, "contenteditable", "true");+ return hasClosestByAttribute(element, "contenteditable", "true", true);}return false;};diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex a182103893..e6d4e0f299 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -309,13 +309,7 @@ export class WYSIWYG {this.element = document.createElement("div");this.element.className = "protyle-wysiwyg";this.element.setAttribute("spellcheck", "false");- if (isMobile()) {- // iPhone,iPad 端输入 contenteditable 为 true 时会在块中间插入 span- // Android 端空块输入法弹出会收起 https://ld246.com/article/1689713888289- this.element.setAttribute("contenteditable", "false");- } else {- this.element.setAttribute("contenteditable", "true");- }+ this.element.setAttribute("contenteditable", "true");if (window.siyuan.config.editor.displayBookmarkIcon) {this.element.classList.add("protyle-wysiwyg--attr");}@@ -3554,7 +3548,7 @@ export class WYSIWYG {}const selection = getSelection();lineBreakUndoContext = !event.defaultPrevented && event.inputType === "insertLineBreak" &&- selection.rangeCount > 0 ?+ selection.rangeCount > 0 ?getUndoFocusContext(protyle.wysiwyg.element, selection.getRangeAt(0)) : undefined;if (event.defaultPrevented || event.inputType !== "insertText" || !event.data ||selection.rangeCount === 0) {@@ -3890,7 +3884,7 @@ export class WYSIWYG {}// 需放在嵌入块之前,否则嵌入块内的引用、链接、pdf 双链无法点击打开 https://ld246.com/article/1630479789513const templateLinkElement = templateInteractiveElement &&- isAVTemplateLink(templateInteractiveElement) ? templateInteractiveElement : undefined;+ isAVTemplateLink(templateInteractiveElement) ? templateInteractiveElement : undefined;const aElement = hasClosestByAttribute(event.target, "data-type", "a") ||hasClosestByClassName(event.target, "av__celltext--url") || // 数据库中资源文件、链接、电话、邮箱单元格templateLinkElement;