we still have some issues with this.
me.instance = this.contentWindow.readerControl;
This is caused by the fact that the origins of the frame the WebViewer.js is loaded into and the iframe created by the WebViewer are different.
Is there something you could do about this?
We currently "solve" this by creating a iframe ourselves with origin
static.domain.com and load a relatively basic HTML there that loads the WebViewer.
This is not optimal in many ways:
- We have to load jQuery again in this iframe, as WebViewer.js needs jQuery to load
- There are two nested iframes
- Every communication to the outer window (we use eventhandlers and postMessage for this) has to be tunneled through the extra iframe
- Config/custom data has to be tunneled through the iframe
A real working solution would be very welcomed.