Closed reckart closed 2 years ago
Ok, something weird is going on here. This is almost certainly a leftover from the dark ages or RecogitoJS's predecessor code. There is no anno.anchor
(it's always undefined). Therefore the current check is exclusively based on the quote.
But I agree: the check should be made based on the start
and end
offset instead. I'll investigate and add a fix!
The
quote()
method throws an exception if an annotation has no TextQuoteSelector. That is probably fine, but doesSelectionUtils.getExactOverlaps
have to use the quote really?This happens when trying to select text which has already been annotated.