[TYPO3-rte] Remove inline styles

Felix Nagel lists at felixnagel.com
Mon Oct 17 20:03:20 CEST 2011


Hey there :-)

Im working on a new htmlarea RTE config but Ive been struggling to get 
rid of all these useless Word formattings like inlinestyles and empty 
tags. My problem is the inline style attribute isnt removed.

Im using the typical configuration (in EM) and following additional TS 
code: http://pastebin.com/jdkVu5iT

By default style is not configured in allowedAttribs so I assume its a 
fixed Attribute like align. Using 
RTE.default.proc.entryHTMLparser_db.tags.p.fixAttrib.style.unset = 1 
seems to work but do I need to apply fixAttrib.style.unset for all 
possible tags or is there a better way to remove the style attribute 
from all tags?

Please note Im talking about the parsed text after saving, not pasting 
it into the RTE (enableWordClean).

Thanks for any advise!

-- 
Regards
Felix Nagel


More information about the TYPO3-project-rte mailing list