Ghost/ghost/admin/app/components/gh-site-iframe.hbs
Kevin Ansfield 3d43964bcd 🐛 Fixed portal preview resize when using split front-end/admin URLs (#1980)
no issue

- switched to listening to Portal's `message` events that now include a height
- removes need to reach into Portal preview iframe contents which is blocked by browser security when working cross-origin
2021-05-27 13:20:37 +01:00

11 lines
334 B
Handlebars

<iframe
class="site-frame {{if this.isInvisible "invisible"}}"
src={{this.srcUrl}}
frameborder="0"
allowtransparency="true"
{{did-insert (optional @onInserted)}}
{{did-insert this.attachMessageListener}}
{{did-update this.resetSrcAttribute @guid}}
{{on "load" this.onLoad}}
...attributes
></iframe>