This commit is contained in:
parent
96133f9b3d
commit
2a7702a78b
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue