Inserting IFRAME code into a post

Topics: ASP.NET 2.0
Mar 14, 2010 at 12:47 PM
Edited Mar 14, 2010 at 5:32 PM

Hi all,

Loving the blog and our cycling team blog ( but would like to embed the code from our rides using the code from the following site....


Even though i've added the "extended_valid_elements: "iframe",

I still can't get the IFRAME to display properly, is there anything else i need to do?





Mar 14, 2010 at 9:57 PM

That will allow you to add an iframe, but the attributes you would put in an iframe (frameborder, width, src, etc) also need to be allowed.  If you use the following instead, it will allow all attributes:

extended_valid_elements : "iframe[*]"

And there's two places that the tinyMCE initialization code is used.  One is tinyMCE.ascx in the admin folder, and the other is edit.ascx in the widgets\TextBox folder.  For posts/pages, you would want to have the code above in the tinyMCE.ascx file in the admin folder.  You can optionally put the code in the edit.ascx file in the TextBox widget folder too.

Mar 21, 2010 at 10:03 PM
I was able to add an iFrame for retaggr on my page. My write up may help: