Skip to content

Can it work in a shadowDom? #252

@digeomel

Description

@digeomel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions