joomla/joomla-cms — pull request #336 by case303 (2012-08-28 22:20:13+00:00)
Title: Update media/editors/tinymce/jscripts/tiny_mce/tiny_mce.js

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"
plugins/.../tinymce.php -> forcing $elements[]	= 'a[*]';
All to no avail..

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.