solved Page Module HTML

SoftDesigns
SoftDesigns
@softdesigns
7 years ago
242 posts
Trying to edit the "source" of a page created by the page module:
Simple Code Test:

<div id="sa_vt_home"></div>
After save the page editor, JR strips out the id from the div above. We set HTML allow "div" in Quota, also tried setting "Allow all HTML tags" in quota. However nothing we do seems to allow div tag above to be saved in a page module page, via the built in page source editor.
--
Any Ideas?
updated by @softdesigns: 06/15/17 06:38:39PM
michael
@michael
7 years ago
7,714 posts
ACP -> MODULES -> CORE -> SYSTEM CORE -> QUOTA CONFIG -> allow ALL HTML tags : checked

should bypass any html validation at all. Its something we really didnt want to add in, but got asked so many times, that it now exists with this warning:

Quote:
If this options is checked, then ALL HTML tags will be allowed for profiles in this quota.

WARNING! Enabling this option will allow users to embed HTML tags that could compromise your system security or affect the design and/or layout of your pages.

Enabling this option overrides the "Allowed HTML Tags" option below.

with that checked the id will get through to the page.
test: https://hostsaba.com/admin/page/3/test-page-with-div

A better way to do is is to allow the id tag through on divs, in the "allowed HTML tags " add in div.id which will let the id attribute through.
span,strong,em,a,b,u,i,p,div,div.id,br,img,h1,h2,h3,h4,pre,hr,ul,ol,li,sub,sup,table,tbody,th,tr,td
SoftDesigns
SoftDesigns
@softdesigns
7 years ago
242 posts
Here is what we found:
Quote: ALL HTML tags : checked
FYI: We had this checked, and still div.id - did not work...
Quote: "allowed HTML tags " add in div.id
This worked :)
Great Support - Solved...
updated by @softdesigns: 03/17/17 02:12:24AM

Tags