We have a requirement, such that the user enters a predesigned html that may include javascript and css. The HTML is used for creating animated content.
We ask the user to enter the content in a DCR using RTE (tinyMCE). the user embeds the entire HTML and javascript code using HTML view of the editor.
Problem:
The editor strips out empty div tags by itself. We might have javascript that manipulates these div tags.
it also strips out div tags which has additional attributes that are not there in HTML specs.
for example, the below div tag is stripped out because of "data-a" and "data-b" attributes
1. What exactly tinyMCE supports, do we have a spec for a valid HTML fragment.
2. Can we configure tinyMCE to not check and strip out htmls