mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +01:00
🚨
This commit is contained in:
parent
f15b2f8666
commit
b2b1089e3d
7 changed files with 27 additions and 22 deletions
6
app/src/config/util/setReadOnly.ts
Normal file
6
app/src/config/util/setReadOnly.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import {fetchPost} from "../../util/fetch";
|
||||
|
||||
export const setReadOnly = (readOnly: boolean) => {
|
||||
window.siyuan.config.editor.readOnly = readOnly;
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue