Jump to:

1161 Posts in 2632 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » tinymce iframe bug? after 2.4 upgrade

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 2002 Views
  • MarijnKampf
    Avatar
    Community Member
    164 Posts

    tinymce iframe bug? after 2.4 upgrade Link to this post

    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="http://maps.google.com/maps?f=q&amp;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="http://maps.google.com/maps?f=q&amp;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

  • MarijnKampf
    Avatar
    Community Member
    164 Posts

    Re: tinymce iframe bug? after 2.4 upgrade Link to this post

    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.

  • senica
    Avatar
    Community Member
    18 Posts

    Re: tinymce iframe bug? after 2.4 upgrade Link to this post

    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.

  • MarijnKampf
    Avatar
    Community Member
    164 Posts

    Re: tinymce iframe bug? after 2.4 upgrade Link to this post

    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.

  • senica
    Avatar
    Community Member
    18 Posts

    Re: tinymce iframe bug? after 2.4 upgrade Link to this post

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

  • Johan
    Avatar
    Community Member
    49 Posts

    Re: tinymce iframe bug? after 2.4 upgrade Link to this post

    Bugger this bug is still not fixed.

    2002 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.