diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 629fa6e0c..0225c51ed 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -207,7 +207,7 @@ const setHTML = (options: { } protyle.element.removeAttribute("disabled-forever"); setReadonlyByConfig(protyle, updateReadonly); - if (options.action.includes(Constants.CB_GET_OPENNEW)) { + if (options.action.includes(Constants.CB_GET_OPENNEW) && window.siyuan.config.editor.readOnly) { updateReadonlyMethod(protyle.breadcrumb.element.parentElement.querySelector('.block__icon[data-type="readonly"]'), protyle); } }