This commit is contained in:
Jeffrey Chen
2026-03-12 16:24:55 +08:00
committed by GitHub
parent 46498b99c7
commit 598fb59143
+5
View File
@@ -214,6 +214,11 @@ export class Protyle {
} else {
this.protyle.title.setTitle(data.data.title, data.data.empty);
}
if (data.data.empty) {
this.protyle.wysiwyg.element.setAttribute(Constants.CUSTOM_SY_TITLE_EMPTY, "true");
} else {
this.protyle.wysiwyg.element.removeAttribute(Constants.CUSTOM_SY_TITLE_EMPTY);
}
}
// update ref
this.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${data.data.id}"]`).forEach(item => {