diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 413cf4699..98b554af9 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -164,6 +164,11 @@ export class Title { event.stopPropagation(); } }); + this.editElement.addEventListener("keyup", (event: KeyboardEvent) => { + this.editElement.querySelectorAll("br").forEach(item => { + item.remove() + }) + }) const iconElement = this.element.querySelector(".protyle-title__icon"); iconElement.addEventListener("click", () => { if (window.siyuan.shiftIsPressed) {