[SOLVED] iframe being stripped out by TinyMCE

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

[SOLVED] iframe being stripped out by TinyMCE

Post 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
Last edited by stevegos on Thu Feb 05, 2009 5:35 pm, edited 1 time in total.
keen
New Member
New Member
Posts: 3
Joined: Wed Feb 04, 2009 6:08 pm

Re: iframe being stripped out by TinyMCE

Post 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.
stevegos

Re: iframe being stripped out by TinyMCE

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: iframe being stripped out by TinyMCE

Post 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
stevegos

Re: iframe being stripped out by TinyMCE

Post by stevegos »

Thanks RonnyK. That worked, but still would have been good to have it work with TinyMCE.

Steve
phillindsay
New Member
New Member
Posts: 5
Joined: Fri May 14, 2010 11:58 am
Location: London, UK

Re: [SOLVED] iframe being stripped out by TinyMCE

Post 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.
Locked

Return to “Modules/Add-Ons”