Skip to content

Is an API similar to elementsFromPoint needed for highlights? #107

Open
@sanketj

Description

@sanketj

Such an API would allow the user to get a collection of all hit highlight ranges under a given pointer. This would allow multiple types of highlights to be composed at the web app's option.

Handing out a collection of all hit highlights may not work well, however, for scenarios where separate uncoordinated frameworks or extensions are trying to work together (ex. CKEditor may provide find-on-page and annotation highlights while Grammarly provides spellcheck highlights). Though perhaps this can be solved by making the API take a HighlightRangeGroup parameter, and only return the collection of ranges that are a part of that group.

Metadata

Metadata

Assignees

Labels

HighlightEventsIssues related to events for highlights

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions