[TYPO3-RTE] Automatic word clean?
Stanislas Rolland
typo3 at sjbr.ca
Tue Dec 2 22:57:00 CET 2008
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
>>> }
>>> }
You also need
RTE.default.enableWordClean = 1
>> RTE.default.enableWordClean.HTMLparser <
>> RTE.default.proc.entryHTMLparser_db
>
>
>> 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
>
I did not look into the code, but it may well be that the parser does
not remap block elements onto inline elements.
Stan
More information about the TYPO3-project-rte
mailing list