Vanessa 2025-02-16 12:03:01 +08:00
parent eacd80493c
commit 0a8ac85d98

View File

@ -164,6 +164,11 @@ export class Title {
event.stopPropagation(); event.stopPropagation();
} }
}); });
this.editElement.addEventListener("keyup", (event: KeyboardEvent) => {
this.editElement.querySelectorAll("br").forEach(item => {
item.remove()
})
})
const iconElement = this.element.querySelector(".protyle-title__icon"); const iconElement = this.element.querySelector(".protyle-title__icon");
iconElement.addEventListener("click", () => { iconElement.addEventListener("click", () => {
if (window.siyuan.shiftIsPressed) { if (window.siyuan.shiftIsPressed) {