solved HTML Tags Being Removed

derrickhand300
@derrickhand300
10 years ago
1,353 posts
I have added the following tags to Core>Quota Config
figure,figcaption,
but when added to the html editor they are stripped- how do I get them to stick?
updated by @derrickhand300: 08/29/15 10:26:44PM
brian
@brian
10 years ago
10,149 posts
Are you entering them in the "HTML" view of the editor?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
10 years ago
7,816 posts
I just tried it here, adding those two to
ACP -> CORE -> QUOTA CONFIG

Then adding this to the html editor:
<p>line one</p>
<figure>something</figure>
<p>line two</p>
The result was the code was output in the html of the page. The figure tag was not stripped.

Check that the location you are using the editor is the same as the quota that you have allowed to use that tag.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Please try it like this
<figure>
   <img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
   <figcaption>Fig1. - A view of the pulpit rock in Norway.</figcaption>
</figure> 
douglas
@douglas
10 years ago
2,806 posts
derrickhand300:
I have added the following tags to Core>Quota Config
figure,figcaption,
but when added to the html editor they are stripped- how do I get them to stick?

I'm seeing the same and have a ticket open for the issue.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SteveX
SteveX
@ultrajam
10 years ago
2,589 posts
There was a similar issue with ul lists - my fix for that was to enter the list all on one line, so you could give that a try with the figure and figcaption.
https://www.jamroom.net/the-jamroom-network/forum/my_posts/30834/textarea-ul-list-on-multiple-lines-fails-allowed_html-validation


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 07/12/15 12:10:47PM
michael
@michael
10 years ago
7,816 posts
Can see where this is happening, haven't figured out why its not doing as expected though.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
I also have the iframe thing shut off- but when I try toi add an iframe its being stripped
here is that iframe
<iframe width='560' height='315' seamless='seamless' src='http://www.bakersfieldnow.com/news/local/Man-falls-to-death-west-of-Bakersfield-316205501.html?embed' frameborder='0' allowfullscreen></iframe>
Is there a way to allow me to add this type of content to my website without it getting stripped-its pretty frustrating
michael
@michael
10 years ago
7,816 posts
iFrames should be able to be added if you have this module in there:
https://www.jamroom.net/the-jamroom-network/networkmarket/116/iframe-control

I added bakersfieldnow.com to the allowed domains and was able to add your code to a blog post. The figure/figcaption issue looks like its sorted in an upcoming release too. It had to do with HTML5 not playing nicely with the htmlpurifier.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks...what if I want to allow iframes "WITHOUT" having to go enter each individual iframe website to the allowed domain list..."Just allow iframes on my website" so when i put something ion a frame it shows up without me having to allow the domain...
michael
@michael
10 years ago
7,816 posts
We'll get something sorted for this. I can see how its working, it will need either ALLOW_ALL_DOMAINS added to jrFramer, or iframes to be allowed from anywhere if jrFramer is not present.
brian
@brian
10 years ago
10,149 posts
derrickhand300:
Thanks...what if I want to allow iframes "WITHOUT" having to go enter each individual iframe website to the allowed domain list..."Just allow iframes on my website" so when i put something ion a frame it shows up without me having to allow the domain...

This is not something we can support in the JR core - HTML Purifier requires that each domain be "whitelisted" - which is why we have the iFrames module to do that. It's also a really bad idea - you might as well just put your root password on your front page and let anyone log in and do what they want with your server - it's that risky allowing iframes.

I would recommend just finding the domains you are OK with and allowing those only - that's the only way to keep your site safe.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,149 posts
The latest Core now supports the full range of HTML 5 tags, so the "figure" and "figcaption" HTML tags should be supported.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
10 years ago
1,353 posts
I have added the iframe conrtol module- then I have added iframe as allowed html tags...then I keep trying to embed a video using and iframe

<iframe src="http://globalnews.ca/video/embed/2138729/" width="670" height="437" frameborder="0" allowfullscreen></iframe>

I have reset caches and run integrity checks and the iframe is still getting stripped out everytime i update the page...

What do I need to do to make this work?
updated by @derrickhand300: 07/30/15 08:48:47AM
derrickhand300
@derrickhand300
10 years ago
1,353 posts
I just noticed if I uncheck 'validate iframes" in the quota for ADMIN...it works...hope this is a way to shut it off because I dont need it...If I only allow the IFRAME tag to be used by the ADMIN qupta that would seem to me as a way to keep things safe...9ie Not giving everyone my root password)

Tags