Page 1 of 1
[SOLVED] iframe being stripped out by TinyMCE
Posted: Wed Feb 04, 2009 1:56 pm
by stevegos
Hi
I am trying to add a Google maps link which uses an iframe in the html but it appears that the TinyMCE is removing it.
Any way round this?
Using version 1.5.2
Thanks, Steve
Re: iframe being stripped out by TinyMCE
Posted: Wed Feb 04, 2009 6:15 pm
by keen
I had the same problem but I found a solution here in forum a couple of minutes ago literally
Read here:
http://forum.cmsmadesimple.org/index.ph ... 991.0.html
twen88 wrote:
go to TinyMCE WYSIWYG admin, click on the "advanced" button, add this to the option "extra configuration":
extended_valid_elements : "iframe[marginheight|id|frameborder|scrolling|align|marginwidth|name|id|src|height|width|]"
and see if the TInyMce will stop removing the iframe tag
That worked for me.
Re: iframe being stripped out by TinyMCE
Posted: Wed Feb 04, 2009 7:18 pm
by stevegos
Thanks for that. In my case its stops the WYSIWYG editor working. Strange!
Reset Tiny back to defaults and the WYSIWYG is back!!!
Any more ideas anyone?
Thanks.
Re: iframe being stripped out by TinyMCE
Posted: Wed Feb 04, 2009 7:25 pm
by RonnyK
Probably the is stripping....
I normally put logic in GCB, where I UNCHECK the "allow wysiwyg in Global Settings"...
Insert the logic in the GCB, without a wysiwyg, and call the GCB in the page.
Ronny
Re: iframe being stripped out by TinyMCE
Posted: Thu Feb 05, 2009 5:35 pm
by stevegos
Thanks RonnyK. That worked, but still would have been good to have it work with TinyMCE.
Steve
Re: [SOLVED] iframe being stripped out by TinyMCE
Posted: Wed Jul 20, 2011 2:43 pm
by phillindsay
Hi,
Having just read the posts above - I have added the settings to Extra Configuration and to get it to work removed any line breaks in what I pasted and it works sweet.
This has then enabled our clients to add Vimeo and YouTube videos to pages without TinyMCE stripping the iFrame.
Cheers,
Phil.