mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 10:00:48 +08:00
This commit is contained in:
parent
eacd80493c
commit
0a8ac85d98
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user