mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 03:10:57 +08:00
This commit is contained in:
parent
21baed3ad4
commit
4aa0724224
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user