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/597
Liang Ding3be30c0f2806
diff --git a/app/src/protyle/markdown/setLute.ts b/app/src/protyle/markdown/setLute.tsindex d4a7a99dd3..81ac7ef9b6 100644--- a/app/src/protyle/markdown/setLute.ts+++ b/app/src/protyle/markdown/setLute.ts@@ -1,5 +1,6 @@export const setLute = (options: ILuteOptions) => {const lute: Lute = Lute.New();+ lute.SetSpellcheck(window.siyuan.config.editor.spellcheck);lute.SetProtyleMarkNetImg(window.siyuan.config.editor.displayNetImgMark);lute.SetFileAnnotationRef(true);lute.SetTextMark(true);diff --git a/app/src/protyle/util/reload.ts b/app/src/protyle/util/reload.tsindex 06fafe6121..b93d6713f0 100644--- a/app/src/protyle/util/reload.ts+++ b/app/src/protyle/util/reload.ts@@ -21,6 +21,7 @@ export const reloadProtyle = (protyle: IProtyle) => {}}protyle.lute.SetProtyleMarkNetImg(window.siyuan.config.editor.displayNetImgMark);+ protyle.lute.SetSpellcheck(window.siyuan.config.editor.spellcheck);addLoading(protyle);if (protyle.options.backlinkData) {const isMention = protyle.element.getAttribute("data-ismention") === "true";diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.tsindex 8f8dff83c4..348c6f5b4c 100644--- a/app/src/types/protyle.d.ts+++ b/app/src/types/protyle.d.ts@@ -153,6 +153,8 @@ declare class Lute {public SetProtyleMarkNetImg(enable: boolean): void;+ public SetSpellcheck(enable: boolean): void;+public SetFileAnnotationRef(enable: boolean): void;public SetSetext(enable: boolean): void;