mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[Editor] Improve the accessibility of the highlight editor (bug 1881743)
This commit is contained in:
parent
b14f696071
commit
f676c2c0c8
6 changed files with 29 additions and 0 deletions
|
@ -952,6 +952,7 @@ class AnnotationEditorUIManager {
|
|||
return;
|
||||
}
|
||||
const { anchorNode, anchorOffset, focusNode, focusOffset } = selection;
|
||||
const text = selection.toString();
|
||||
const anchorElement =
|
||||
anchorNode.nodeType === Node.TEXT_NODE
|
||||
? anchorNode.parentElement
|
||||
|
@ -974,6 +975,7 @@ class AnnotationEditorUIManager {
|
|||
anchorOffset,
|
||||
focusNode,
|
||||
focusOffset,
|
||||
text,
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue