# Iframe reference being stripped in editor

**URL:** <https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887>\
**Category:** Support\
**Created:** [April 9, 2019, 5:46pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887 "2019-04-09T17:46:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)\
**Post date:** [April 9, 2019, 5:46pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/1 "2019-04-09T17:46:22Z")

</div>

Hi guys,

When attempting to place an iFrame the editor appears to be stripping the URL off it leaving a blank, box, even for whitelisted domains.

 ![iframe](https://global.discourse-cdn.com/meta/original/3X/9/0/90e8fb894688e0027f99e0de97e82ef1d9c5e762.gif)  
 ![div](https://global.discourse-cdn.com/meta/original/3X/7/c/7cc53e70b9a4f0e932aa082f67e8569daf88f565.gif)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [April 9, 2019, 6:44pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/2 "2019-04-09T18:44:59Z")

</div>

Does it work if you use the correct quotes (not curly quotes) and removing space between attributes names and values?

`<iFrame src = “https://coinpayments.net” widht= “300px” height=“300px”>`

should be

`<iframe src="https://coinpayments.net" width="300px" height="300px">`

---

<div class="post-metadata">

**Author:** ![DNSTARS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnstars/32/100957_2.png) [@DNSTARS](https://meta.discourse.org/u/DNSTARS)\
**Post date:** [April 9, 2019, 7:07pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/3 "2019-04-09T19:07:59Z")

</div>

Curly quotes was causing the stripping 👍

Discourse doesn’t strip it now, but equally it doesn’t render it, same across FF and Chrome, installed graceful theme to see if it was something appended onto our default theme and the same behaviour persists. Odd.

I’ll poke it with a stick and report back but I’ll take ideas if anyone’s got any!

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [April 10, 2019, 6:04am UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/4 "2019-04-10T06:04:25Z")

</div>

Unless you have whitelisted the source, a random `<iframe>` is not going to work.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [June 30, 2022, 8:53pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/5 "2022-06-30T20:53:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [October 27, 2022, 7:43pm UTC](https://meta.discourse.org/t/iframe-reference-being-stripped-in-editor/113887/6 "2022-10-27T19:43:28Z")

</div>


