Vanessa 2024-07-25 20:22:57 +08:00
parent 96133f9b3d
commit 2a7702a78b

View file

@ -260,7 +260,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
data: previousElement.outerHTML,
id: previousElement.getAttribute("data-node-id"),
parentID: previousElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID,
previousID: ppElement ? ppElement.getAttribute("data-node-id") : undefined
previousID: (ppElement && (!previousElement.previousElementSibling || !previousElement.previousElementSibling.classList.contains("protyle-action"))) ? ppElement.getAttribute("data-node-id") : undefined
}]);
previousElement.remove();
} else {