@matthew Thanks for all the questions
- Is it possible to open the HTML component so that it takes up the visible space in the view i.e. the content window (see screenshot 1 below).
Not possible. Please suggest this as well as “toggle HTML fullscreen from JS/TS” to our Product Roadmap for future consideration
- We also tried using a simple client side library ObjectPDF to render pdf attachments, this threw out a sandboxing error, as did using our own iframe, embed or object elements. (incidentally using a journey document URL for the source in all cases) (see screenshot 2 (below);
- As a last ditch effort we tried simply opening the browser with the pdf url, and got a further error that the allow-popups permission was not set on the iframe. (see screenshot 3 below).
Our platform team will respond with a more detailed explanation of the limitations of the HTML component as it relates to this type of sandboxing
issue.
In the mean time, for PDFs, you can render them in the Application runtime using standard JourneyApps components. If the attachment is already in the App DB you can just use journey.files.viewFile(attachment)
and if the PDF is behind some URL then you can use this solution
In general, you typically cannot simply embed another web app inside of the HTML component by simply pointing the HTML to the specific URL (details on limitations to follow), and so in your specific case you will likely be better served by doing a integration to your ticketing system and using standard JourneyApps component to display the results / response from the integration with the ticketing system.
I hope that helps in the interim.