Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

tinymce iframe bug? after 2.4 upgrade


6 Posts   2014 Views


10 May 2010 at 10:02pm Community Member, 164 Posts

After upgrading from 2.3.7 to 2.4 I noticed that Google maps contained in iframes within the tinymce editor break all text following the iframe. The text seems to become part of the iframe. The iframe is copied into the page using the Edit HTML Source of the tinymce editor. After some testing I found that including text within the <iframe></iframe> element stops it breaking.

Can anyone confirm this is a bug introduced by 2.4?

This doesn't work:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=";source=s_q&amp;hl=en&amp;geocode=&amp;q=exadium+uk&amp;sll=37.09024,-96.503906&amp;sspn=36.863178,91.494141&amp;ie=UTF8&amp;hq=exadium+uk&amp;hnear=&amp;radius=15000&amp;ll=51.45882,-3.629801&amp;spn=0.113345,0.357399&amp;z=12&amp;iwloc=A&amp;cid=6460263702618688599&amp;output=embed"></iframe> Test after the iframe

This does work:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=";source=s_q&amp;hl=en&amp;geocode=&amp;q=exadium+uk&amp;sll=37.09024,-96.503906&amp;sspn=36.863178,91.494141&amp;ie=UTF8&amp;hq=exadium+uk&amp;hnear=&amp;radius=15000&amp;ll=51.45882,-3.629801&amp;spn=0.113345,0.357399&amp;z=12&amp;iwloc=A&amp;cid=6460263702618688599&amp;output=embed">Google Maps</iframe> Text after the iframe


12 May 2010 at 2:31am (Last edited: 12 May 2010 2:37am), Community Member, 164 Posts

Just noticed that this also happens with the same code in any HTMLText field. The pasted code has <iframe ... ></iframe>, HTMLText field changes this to <iframe ... /> which seriously breaks things.


21 June 2010 at 4:03pm Community Member, 18 Posts

Did you figure this out? It's driving me crazy!!!

I can't include a simple Google maps without my site breaking because of this.


21 June 2010 at 8:22pm Community Member, 164 Posts

Didn't find a permanent solution, I ended up entering some random text inside the iframe to make it work.

<iframe ...>Google Maps</iframe>

Fortunately the site only used a handful of maps directly in the editor.

The only other solution would be to create a separate TextField to your page for your maps.


22 June 2010 at 1:51am Community Member, 18 Posts

Heh, I actually thought about that as I was falling asleep last night. At any rate, your suggestion worked! Thanks!


5 July 2011 at 10:50pm Community Member, 49 Posts

Bugger this bug is still not fixed.