What version? I guess its 5.0.0 or 5.0.1 since you use that button, shouldn't need on newer versions(.2 & svn). This is 100% TinyMCE territory, so you should take a look at settings* for it and modify "ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl" to set them.
> Good to know it's a tinymce thing. i will continue scouring the paste plugin.
If the cleanup is done before you even press publish or store draft, then it is tinyMCE and you can verify it by using firebug or the 'code' button to see the current internal xhtml. If the cleanup is done when page is refreshed with publish, store draft or disable editor button, then its is the ezoe html to ezxml Parser (eZOEInputParser).
UPDATE: >[align] needs adding to relevant tags in the valid_elements setting in ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl
Damn.. thanks, will fix that, Witch tags are missing? Should be table, div, span, td, th, h[1-6] and p tags.
yes, and span is incorrectly together with the block elements in valid_child_elements.
Haven't looked at this in a year++, since tinyMCE validation was disabled as it created to many issues*. didn't know past plugin used it as well though :)
This is what I have so far, does it correspond to what you have and have tested? add align on span + p + table + td + th, add div ( div[type|class|title|customattributes|align] ), add attributes on headings ([class|customattributes|align]) and move span from block to inline tags in valid_child_elements.
* Will try to re enable it during the 5.1(4.3 probably) phase though, as it is desirable to use it correctly, and it might behave a bit better now with newer versions of TinyMCE and with the changes in the internal xhtml over the last 18 months..