Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 11, 2024
1 parent eb616f9 commit dc17dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/asset/anno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const showToolbar = (element: HTMLElement, range: Range, target?: HTMLElement) =
};

const getTextNode = (element: HTMLElement, isFirst: boolean) => {
const spans = element.querySelectorAll(".markedContent span");
const spans = element.querySelectorAll('span[role="presentation"]');
let index = isFirst ? 0 : spans.length - 1;
while (spans[index]) {
if (spans[index].textContent) {
Expand Down

0 comments on commit dc17dc5

Please sign in to comment.