Inserting IFRAME code into a post

Topics: ASP.NET 2.0
Mar 14, 2010 at 11:47 AM
Edited Mar 14, 2010 at 4:32 PM

Hi all,

Loving the blog and our cycling team blog (http://www.teamechelon.co.uk/) but would like to embed the code from our rides using the code from the following site....

 

http://www.mapmyride.com/add_route_to_blog.php?r=731126856098724843

 

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?

 

Cheers,

 

Stephen

Coordinator
Mar 14, 2010 at 8: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 9:03 PM
I was able to add an iFrame for retaggr on my page. My write up may help: http://brian.chipsofttech.com/blogs/brian/post/BEN-allow-iframe-in-Editor.aspx