[TYPO3-RTE] Automatic word clean?

Christopher Christopher at temporaryforwarding.com
Tue Dec 2 15:33:44 CET 2008


Hi Stan,

"Stanislas Rolland" <typo3 at sjbr.ca> schrieb im Newsbeitrag 
news:mailman.1.1228172299.25139.typo3-project-rte at lists.netfielders.de...
> Hi Christopher,
>
> Try:
>
> RTE.default.proc.entryHTMLparser_db = 1
>> RTE.default.proc.entryHTMLparser_db {
>>         noAttrib = b, i, u, strike, sub, sup
>>         # Remove if no attribs:
>>         rmTagIfNoAttrib = span, div, font
>>
>>         tags {
>>                 p.fixAttrib.align.unset >
>>                 div.fixAttrib.align.unset >
>>                 font.allowedAttribs = color, face, size
>>                 p.allowedAttribs = class, style, align
>>
>>                 # PROBLEM: does not work
>>                 h1.remap = b
>>                 h2.remap = b
>>                 h3.remap = b
>>                 h4.remap = b
>>                 h5.remap = b
>>                 h6.remap = b
>>         }
>> }
>
> RTE.default.enableWordClean.HTMLparser < 
> RTE.default.proc.entryHTMLparser_db

I tryed this config:
When pasting content nothing happens at all.
Settings are only applyed when saving.

> P.S. If the headings are not remapped on save, then I am not sure why. 
> Perhaphs there is a problem in the TYPO3 html parser function.

Remapping works for the following:
h1.remap = h3
h2.remap = h3

But not for
h1.remap = b

:-(

Christopher 




More information about the TYPO3-project-rte mailing list