Vanessa 2024-03-24 22:35:30 +08:00
parent e922c402c8
commit 1f607cf08a
9 changed files with 15 additions and 294 deletions

View file

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