mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
fe28779608
commit
6f9901e95f
1 changed files with 4 additions and 3 deletions
|
|
@ -245,9 +245,10 @@ const setHTML = (options: {
|
||||||
protyle.breadcrumb.element.nextElementSibling.textContent = "";
|
protyle.breadcrumb.element.nextElementSibling.textContent = "";
|
||||||
}
|
}
|
||||||
protyle.element.removeAttribute("disabled-forever");
|
protyle.element.removeAttribute("disabled-forever");
|
||||||
setReadonlyByConfig(protyle, updateReadonly);
|
if (options.action.includes(Constants.CB_GET_OPENNEW) && window.siyuan.config.editor.readOnly && !window.siyuan.config.readonly) {
|
||||||
if (options.action.includes(Constants.CB_GET_OPENNEW) && window.siyuan.config.editor.readOnly) {
|
enableProtyle(protyle);
|
||||||
updateReadonlyMethod(protyle.breadcrumb.element.parentElement.querySelector('.block__icon[data-type="readonly"]'), protyle);
|
} else {
|
||||||
|
setReadonlyByConfig(protyle, updateReadonly);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue