This commit is contained in:
Vanessa 2022-10-27 11:34:34 +08:00
parent 49e0dec799
commit d1fad76bf8
6 changed files with 29 additions and 29 deletions

View file

@ -111,7 +111,7 @@ export const insertEmptyBlock = (protyle: IProtyle, position: InsertPosition, id
updateListOrder(newElement.parentElement, orderIndex);
updateTransaction(protyle, newElement.parentElement.getAttribute("data-node-id"), newElement.parentElement.outerHTML, parentOldHTML);
} else {
let doOperations: IOperation[]
let doOperations: IOperation[];
if (position === "beforebegin") {
doOperations = [{
action: "insert",