mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Support setting document title to empty https://github.com/siyuan-note/siyuan/pull/17110#issuecomment-4043784534 (#17190)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user