mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 02:40:54 +08:00
🎨 桌面端和浏览器端支持英文拼写检查 https://github.com/siyuan-note/siyuan/issues/597
This commit is contained in:
parent
456fc59c68
commit
3be30c0f28
@ -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);
|
||||
|
@ -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";
|
||||
|
2
app/src/types/protyle.d.ts
vendored
2
app/src/types/protyle.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user