This commit is contained in:
Vanessa 2023-07-30 12:40:32 +08:00
parent c81db6f61a
commit 915170aa70
2 changed files with 4 additions and 2 deletions

View file

@ -299,7 +299,7 @@ export class Title {
if (response.data.ial["custom-riff-decks"]) {
this.element.setAttribute("custom-riff-decks", response.data.ial["custom-riff-decks"]);
}
protyle.background.render(response.data.ial, protyle.block.rootID);
protyle.background?.render(response.data.ial, protyle.block.rootID);
protyle.wysiwyg.renderCustom(response.data.ial);
this.editElement.setAttribute("data-render", "true");
this.setTitle(response.data.ial.title);

View file

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