Vanessa 2023-04-26 11:06:50 +08:00
parent c7d2b8cde2
commit 4b3b32a306

View file

@ -244,7 +244,8 @@ const setHTML = (options: {
if (options.isSyncing) { if (options.isSyncing) {
disabledForeverProtyle(protyle); disabledForeverProtyle(protyle);
} else { } else {
if (protyle.disabled) { protyle.breadcrumb.element.nextElementSibling.textContent = "";
if (window.siyuan.config.readonly || window.siyuan.config.editor.readOnly) {
disabledProtyle(protyle); disabledProtyle(protyle);
} else { } else {
enableProtyle(protyle); enableProtyle(protyle);