This commit is contained in:
parent
e2d89fa2b4
commit
04b39e5200
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue