From 04b39e52006739578ce7f7b64265d84086e61398 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 25 Jun 2024 16:26:14 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11732 --- app/src/protyle/wysiwyg/remove.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index ade0cfeba..cf21ea7ea 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -249,6 +249,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran const previousElement = getPreviousBlock(blockElement) if (previousElement) { if (previousElement.classList.contains("p") && getContenteditableElement(previousElement).textContent === "") { + // 空块向后删除时移除改块 https://github.com/siyuan-note/siyuan/issues/11732 const ppElement = getPreviousBlock(previousElement) transaction(protyle, [{ action: "delete",