I am rendering a document inside a shadowDom to avoid styles in that document spilling outside to my main app. I am initialising the TextAnnotator object by passing the shadowDom root element as such:
this._annotator = createTextAnnotator(shadowDomRooNode);
But it seems that event listeners such as the following don't seem to work:
this._annotator.on('selectionChanged', (annotations) => {
console.log('Selected:', annotations);
});
Am I missing something or does the TextAnnotator not work inside a shadowDom?
I am rendering a document inside a shadowDom to avoid styles in that document spilling outside to my main app. I am initialising the TextAnnotator object by passing the shadowDom root element as such:
But it seems that event listeners such as the following don't seem to work:
Am I missing something or does the TextAnnotator not work inside a shadowDom?