sul-dlss-deprecated / universalviewer

The Universal Viewer is a community-developed open source project on a mission to help you share your content with the world
http://universalviewer.io
Other
0 stars 1 forks source link

Spend an hour with Ed to debug our embedding environment around UV, so we can use the events and methods of the instance in our environment. #45

Open aeschylus opened 6 years ago

aeschylus commented 6 years ago

In this and many other cases, we've seen demos of using UV's events and API to drive and react to it externally. However, this seems to be broken in our environment. I believe this is due to the several layers of encapsulation of the UV instance in our javascript bundle(s) in Exhibits->Spotlight->Embed.

In the source of the same example linked above, it is possible to react to the embedded UV events to affect the hosting page. This is done by listening for them on the document, but this does not seem to be possible in our environment (at least not at the spotlight level).