Vanessa 2024-07-04 16:54:59 +08:00
parent b949e53568
commit b351c39514

View file

@ -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;
}