diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index 838665a1f..cfb6f1f74 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -239,7 +239,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran return; } - if (blockElement.parentElement.classList.contains("li") && blockElement.previousElementSibling.classList.contains("protyle-action")) { + if (blockElement.parentElement.classList.contains("li") && blockElement.getAttribute("data-type") !== "NodeHeading" && + blockElement.previousElementSibling.classList.contains("protyle-action")) { removeLi(protyle, blockElement, range, type === "Delete"); return; }