Vanessa 2024-05-08 18:27:41 +08:00
parent ddaae9c4ec
commit 11d2b0dbeb

View file

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