Closed rsimon closed 2 years ago
When the RecogitoJS script is linked into the host page, and the annotated content is in an embedded iframe the getAnnotations method doesn't work. (It only returns relationship annotations.)
iframe
getAnnotations
The reason is this line of code, where annotations are fetched by querying the document: https://github.com/recogito/recogito-js/blob/main/src/highlighter/Highlighter.js#L68
document
When the RecogitoJS script is linked into the host page, and the annotated content is in an embedded
iframe
thegetAnnotations
method doesn't work. (It only returns relationship annotations.)The reason is this line of code, where annotations are fetched by querying the
document
: https://github.com/recogito/recogito-js/blob/main/src/highlighter/Highlighter.js#L68