When I go to Resources/Plugins/TinyMCE/Configuration I want to define valid_elements in "Custom Parameters"
This line says to TinyMCE that only "p" and "a" elements are allowed.
MODx has problem to parse this code -> TinyMCE doesn´t load. I found out that the comma makes problems, but its the regular syntax.
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements
Using this code, TinyMCE has no problems.
To clean up the HTML I would use this expression.
valid_elements : "@[id|class|title],a[href|type],abbr,acronym,address,big,blockquote[cite],br,caption,cite,code,col[span],col[colgroup],dd,del[cite|datetime],dfn,dl,dt,em/i,h2,h3,h4,h5,h6,hr,img[alt|name|src|width|height],ins[cite|datetime],li,object[height|archive|classid|codebase|codetype|data|declare|name|standby|tabindex|type|usemap|width],ol,p,param[id|name|type|value|valuetype<DATA?OBJECT?REF],q[cite],samp,small,strong/b,sub,sup,table[summary|caption],tbody,td[abbr|colspan],tfoot,th[abbr|colspan],thead,title,tr[abbr|colspan],tt,ul,var",
Worked for me good, but not in MODx.