# Shadowboxes for IFRAMEs

**URL:** <https://meta.discourse.org/t/shadowboxes-for-iframes/89135>\
**Category:** Product Support\
**Created:** [4 juni 2018 om 19:06 UTC](https://meta.discourse.org/t/shadowboxes-for-iframes/89135 "2018-06-04T19:06:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Emmanuel\_Schanzer](https://avatars.discourse-cdn.com/v4/letter/e/87869e/32.png) [@Emmanuel\_Schanzer](https://meta.discourse.org/u/Emmanuel_Schanzer)\
**Post date:** [4 juni 2018 om 19:06 UTC](https://meta.discourse.org/t/shadowboxes-for-iframes/89135/1 "2018-06-04T19:06:43Z")

</div>

We run a community site for teachers who are using the [Bootstrap](http://www.BootstrapWorld.org) curriculum to teach computer science inside mainstream math, science, and social studies classes. Our IDE is cloud-based, so we have the ability to embed an instance of it inside a post on Discourse – this is freaking awesome, and we’re already thrilled to have moved to the platform based on this one feature alone. 🙂

However, there’s plenty of content we’d like to embed this way, and some of it is wider than the post width will allow. Customizing the CSS to permit wider posts hasn’t been fruitful, and ultimately what I’d love is for IFRAMEs to be treated the same way as images: a thumbnail is shown, but clicking it opens a shadowbox that’s as wide as the browser window.

I’ve never messed with Discourse plugin development before, but I could also imagine some kind of Onebox extension that takes URLs matching a particular pattern and generates the appropriate markup. Perhaps there’s an easier way? Curious if anyone else has run into this use-case.

---

_[View the full topic](https://meta.discourse.org/t/shadowboxes-for-iframes/89135)._
