mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
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,
|
data: previousElement.outerHTML,
|
||||||
id: previousElement.getAttribute("data-node-id"),
|
id: previousElement.getAttribute("data-node-id"),
|
||||||
parentID: previousElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID,
|
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();
|
previousElement.remove();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue