From dc17dc51603c1128ad5feb7ccc3ce01e82e7189f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 11 Dec 2024 18:18:48 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13282 --- app/src/asset/anno.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts index f0c7ce9777b..c0f7a721c0e 100644 --- a/app/src/asset/anno.ts +++ b/app/src/asset/anno.ts @@ -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) {