mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user