User tests: Successful: Unsuccessful:
Problems inserting templates within tiny_mce led me to these two changes within her mceInsertContent & parse functions
Please tell me what's wrong with my changes, as I assume this creates a security risk..
I tried various methods within Joomla! to set valid html elements, including:
Global Options -> text filtering..
in my form.xml
filter="raw"This helped..
plugins/.../tinymce.php
$elements[] = 'p[*]';
$elements[] = 'a[*]';
$elements[] = 'div[*]';setContent() was never called within mceInsertContent, only setHTML().
It appears to me that tinymce's parse function is not comparing inserted elements with acceptable elements correctly.. thinking standard tags were invalid.. Also, stripping templates tags when serializing..
Hopefully this leads to a proper solution..
Perhaps a newer version of tiny_mce solves this issue correctly.
We really should update TinyMCE first. Also if this is an issue it should be fixed upstream first (if possible).
Specific edits:
approx. line #11251
approx. line #2831