How to do routing in an iframe?
To update route of the parent window through the iframe, you need to send a message from the iframe to the parent window. You can use the method window.top.postMessage to send a message from a child component to a parent component. For example:
window.top.postMessage({for: "workspace-shell", url: "/" }, "*")
message: The message to be sent. Here the message is{for: "workspace-shell", url: "/"}where:forrepresents the parent window.urlrepresents the destination URL.
targetOrigin: The URL of the target window. Here the URL is"*".
Note: All the values must be of variable type string.
Set Height and Width of an iframe
To set the height and width of an iframe, add the parameters height and width along with their values in the iframe code block in the file entity-actions.json.
Note: To call any application REST API from the iFrame, the frame URL must have the same origin (domain + port) as the host application. When you edit or add any plugin through admin portal, Quark Publishing Platform NextGen reverts the changes.