This commit is contained in:
parent
eb616f9b03
commit
dc17dc5160
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue