From 0a8ac85d98e7dc39afb7c7f43006a60a19b2074f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Feb 2025 12:03:01 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14057 --- app/src/protyle/header/Title.ts | 5 +++++ 1 file changed, 5 insertions(+) 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) {