client icon indicating copy to clipboard operation
client copied to clipboard

Mechanism for disabling creating annotations and displaying highlights on the host frame for enable-annotations iframe use cases

Open jwgmeligmeyling opened this issue 1 year ago • 1 comments

Whenever the VitalSourceInjector injector is used, a Guest is not instantiated in the Host window. As a result, annotating is only possible in the VitalSource viewer even though Hypothesis is loaded in the parent frame as well.

Whenever the HypothesisInjector is used, annotations are always enabled in the Host window. It seems there are valid use cases where this is simply not necessary, for example an LMS UI loading a reader type viewer in an iframe.

Perhaps a configuration property can be introduced that determines whether the Guest gets initialised?

jwgmeligmeyling avatar Jul 27 '24 19:07 jwgmeligmeyling

Perhaps a configuration property can be introduced that determines whether the Guest gets initialised?

This makes sense. Maybe something like enableAnnotation: boolean to control whether annotation is enabled in the current frame?

robertknight avatar Aug 02 '24 11:08 robertknight