mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
This commit is contained in:
parent
c81db6f61a
commit
915170aa70
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue