function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott McArthur 8Scott McArthur 8 

iframes in Lightning component

Do Lightning components support iframes? I tried putting an iframe tag on a component and nothing displayed. I am aware that you can host a visualforce page from Lightning and have an iframe in that although not recommended by Salesforce. My scenario is to display iframe content in a customer community using the Napili template and I was thinking of using a custom Lightning component as a means of doing so. Trying to put an iframe directly into the 'Rich Content Editor' component does not work. Possibly the 'force:canvasApp' Lightning component could be an alternative. Any advice on the feasiblity/right direction on this appreciated
dani a.ax940dani a.ax940
Are you able to find solution?
Scott McArthur 8Scott McArthur 8
Not really, iFrames not really a good idea in general. Solution is just to navigate out of the portal to  the external site and implment a common header to give the impression you are still in the same website. We have single sign on across the different sites.