Below is the code I am looking to include on a page, however when entered in a pages "content" box it seems to be stripped on the "data-role" information inthe div's
What I paste <div data-role="collapsible">
<h4>Heading</h4>
<p>collapsible content.</p>
</div>
What is saved <div>
<h4>Heading</h4>
<p>collapsible content.</p>
</div>
Please let me know if this is intentional and what your recommendation would be with regards to using data-roles (ie. putting page content in a file and including the file instead of doing in content), etc.
The Content Editor accepts only basic HTML input, which is why "data-role" is being stripped when the HTML source compiles into the WYSIWYG editor.
Instead, I would recommend adding this content using the page-level template editor (see below), where you have full control over the HTML input.
Showing 3 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert