mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
754b3ad67a
3 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue