Vanessa 2025-04-25 17:25:35 +08:00
parent 21baed3ad4
commit 4aa0724224

View File

@ -646,13 +646,12 @@ export class Toolbar {
(currentNode.getAttribute("data-inline-memo-content") || ""));
}
}
startContainer = currentNode;
if (currentType.includes("inline-math")) {
startContainer = currentNode;
startOffset = null;
} else {
if (i === newNodes.length) {
endOffset = previousElement.textContent.length;
startContainer = currentNode;
} else {
startOffset = previousElement.textContent.length;
}