mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
ddaae9c4ec
commit
11d2b0dbeb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue