This commit is contained in:
Vanessa 2023-11-25 17:10:06 +08:00
parent 320110d57e
commit 4cd93b0fec
10 changed files with 15 additions and 8 deletions

View file

@ -337,7 +337,7 @@ export const editor = {
});
},
_onSetEditor: (editorData: IEditor) => {
const changeReadonly = editorData.readOnly !== window.siyuan.config.editor.readOnly
const changeReadonly = editorData.readOnly !== window.siyuan.config.editor.readOnly;
if (changeReadonly) {
editor.setReadonly(editorData.readOnly);
}