This commit is contained in:
Vanessa 2024-05-13 17:06:28 +08:00
parent f15b2f8666
commit b2b1089e3d
7 changed files with 27 additions and 22 deletions

View 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);
};