Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7052

Vanessa3b08da01cc24
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 6f69a9b790..82a3727bf7 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1403,6 +1403,9 @@ export class WYSIWYG {
event.stopPropagation();
return;
}
+ if ([":", "(", "【", "(", "[", "{", "「", "#", "/", "、"].includes(event.data)) {
+ protyle.hint.enableExtend = true;
+ }
if (event.isComposing || isComposition ||
// https://github.com/siyuan-note/siyuan/issues/337 编辑器内容拖拽问题
event.inputType === "deleteByDrag" || event.inputType === "insertFromDrop"
@@ -1415,9 +1418,6 @@ export class WYSIWYG {
input(protyle, blockElement, range, true); // 搜狗拼音数字后面句号变为点;Mac 反向双引号无法输入
});
} else {
- if ([":", "(", "【", "(", "[", "{", "「", "#", "/", "、"].includes(event.data)) {
- protyle.hint.enableExtend = true;
- }
input(protyle, blockElement, range, true);
}
event.stopPropagation();