Text editor

mick
@mick
11 years ago
16 posts
I've been trying to place an iframe into a profile page by using the html button but the code keeps disappearing after clicking the 'save changes' button. I've set the allowed html in the quota to allow 'iframe' but for some reason it's just not embedding after saving the page.

Is anyone else having the same issue?

Mick
updated by @mick: 12/13/13 02:24:20PM
douglas
@douglas
11 years ago
2,793 posts
Can you show us the code your using?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mick
@mick
11 years ago
16 posts
Just a simple bit of code...

<iframe src="http://www.s2k.biz/booking/1.html" style="width: 90%; height: 300px"></iframe>

I've tried placing the code here but it keeps displaying it different from what I've pasted in.

All I'm trying to do is embed an iframe to display... http://www.s2k.biz/booking/1.html

updated by @mick: 10/10/13 08:14:27AM
mick
@mick
11 years ago
16 posts
I've just tried the code in a blog on Jamroom 4 and it displays fine.

http://www.musical1.com/Musky/blog.php
brian
@brian
11 years ago
10,148 posts
Make sure and allow "iframe" in your allowed HTML. Note that JR5 uses a much stricter HTML security setup, and iframe is likely the worst offender when it comes to security - there's just so many ways to have injection when using iframes.

Make sure you are creating the iframe as a MASTER user - that's the only way it may get through.

I would highly recommend finding something different than iframe to use to bring in outside data.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 10/10/13 08:26:09AM
mick
@mick
11 years ago
16 posts
I have allowed iframe in html tags for the quota and I'm logged in as master admin when trying this.

If the iframe tag is usuitable because of security, any suggestions what I can use as an alternative?
brian
@brian
11 years ago
10,148 posts
When logged in as the master admin, the HTML check is actually bypassed, so it should work, so I will check that out.

I would recommend just cut/paste what you want to display into the editor and see if that works.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags