瀏覽代碼

:art: fix https://github.com/siyuan-note/siyuan/issues/11732

Vanessa 1 年之前
父節點
當前提交
04b39e5200
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/protyle/wysiwyg/remove.ts

+ 1 - 0
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",