mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 15:21:01 +08:00
This commit is contained in:
parent
21baed3ad4
commit
4aa0724224
@ -646,13 +646,12 @@ export class Toolbar {
|
|||||||
(currentNode.getAttribute("data-inline-memo-content") || ""));
|
(currentNode.getAttribute("data-inline-memo-content") || ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
startContainer = currentNode;
|
||||||
if (currentType.includes("inline-math")) {
|
if (currentType.includes("inline-math")) {
|
||||||
startContainer = currentNode;
|
|
||||||
startOffset = null;
|
startOffset = null;
|
||||||
} else {
|
} else {
|
||||||
if (i === newNodes.length) {
|
if (i === newNodes.length) {
|
||||||
endOffset = previousElement.textContent.length;
|
endOffset = previousElement.textContent.length;
|
||||||
startContainer = currentNode;
|
|
||||||
} else {
|
} else {
|
||||||
startOffset = previousElement.textContent.length;
|
startOffset = previousElement.textContent.length;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user