From 11d2b0dbebd666c248c3da9e64e46e58dfaf988f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 8 May 2024 18:27:41 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11302 --- app/src/protyle/util/onGet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }