Vanessa 2026-01-10 10:26:13 +08:00
parent b7ee623b1d
commit b973fed06b

View file

@ -692,7 +692,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
if (getContenteditableElement(rangeBlockElement)) {
range.insertNode(document.createElement("wbr"));
} else {
getContenteditableElement(updateElements[0]).insertAdjacentHTML("afterbegin", "<wbr>");
getContenteditableElement(updateElements[0])?.insertAdjacentHTML("afterbegin", "<wbr>");
}
}
}