Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/7681

Vanessae0ebc536d5c4
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 577bb311e6..f1cfee9a7e 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -172,9 +172,9 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
return;
}
// https://github.com/siyuan-note/siyuan/issues/5083
- if (!isMobile() && (this.splitChar === "/" || this.splitChar === "、")) {
+ if (this.splitChar === "/" || this.splitChar === "、") {
clearTimeout(this.timeId);
- if (this.enableSlash) {
+ if (this.enableSlash && !isMobile()) {
this.genHTML(hintSlash(key, protyle), protyle);
}
return;
@@ -201,7 +201,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
}
}
- public bindUploadEvent (protyle:IProtyle, element:HTMLElement) {
+ public bindUploadEvent(protyle: IProtyle, element: HTMLElement) {
const uploadElement = element.querySelector('input[type="file"]');
if (uploadElement) {
uploadElement.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {