openannotation / annotator

Annotation tools for the web. Select text, images, or (nearly) anything else, and add your notes.
http://annotatorjs.org
Other
2.69k stars 530 forks source link

Which search key is used? #705

Closed mpcsharp closed 5 years ago

mpcsharp commented 5 years ago

I have a great curiosity ... How is the id of the selected text containing the comment stored in the database? For example I have a text that marks two words "the" "the". How does he know that a particular comment belongs to the first and not to the second "the"?

tilgovi commented 5 years ago

The default user interface extensions use XPath to identify the selection. The quoted text is only used for display, not for re-identification.