diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index 958c61551..a2de68284 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -90,9 +90,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang id: topElement.getAttribute("data-node-id"), }); deletes.push(...foldTransaction.data.doOperations.slice(1)); - const previousID = topElement.previousElementSibling ? topElement.previousElementSibling.getAttribute("data-node-id") : ""; foldTransaction.data.undoOperations.forEach((operationItem: IOperation, index: number) => { - operationItem.previousID = previousID; if (index > 0) { operationItem.context = { ignoreProcess: "true"