[TYPO3-rte] Colors in HTMLsrea RTE

Jeppe Donslund jd at webmasters.dk
Fri Mar 5 11:49:06 CET 2010


Hi Stanislas.

It seemes that is is only working in FireFox. Not in IE8.0. Do you have 
an answer to that? Yes, I can use FireFox for editing, but the customer 
think its a bug that it doesn't work in IE8.

Hope you can help me.

Jeppe


Jeppe Donslund skrev:
> YOU ARE MY HERO!!!!
> 
> Thanks for your time and help.
> 
> Jeppe
> 
> Stanislas Rolland skrev:
>> Jeppe Donslund a écrit :
>>> Yes I have.
>>>
>>> This is what inserted in the code in RTE:
>>> <span style="color: rgb(169, 42, 24);">
>>>
>>> But not saved.
>>>
>> Add the following to your Page TSConfig (back-ported from TYPO3 4.3):
>>
>> RTE.default.proc {
>>
>>         ## ALLOWED P & DIV ATTRIBUTES
>>     keepPDIVattribs := addToList(style)
>>
>>         ## CONTENT TO DATABASE
>>     entryHTMLparser_db {
>>         tags {
>>             ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
>>             span.fixAttrib.style.unset >
>>             span.allowedAttribs := addToList(style)
>>             p.allowedAttribs := addToList(style)
>>             div < .p
>>             hr.allowedAttribs := addToList(style)
>>             b.allowedAttribs := addToList(style)
>>             blockquote.allowedAttribs := addToList(style)
>>             em.allowedAttribs := addToList(style)
>>             i.allowedAttribs := addToList(style)
>>             strike.allowedAttribs := addToList(style)
>>             strong.allowedAttribs := addToList(style)
>>             u.allowedAttribs := addToList(style)
>>         }
>>     }
>> }
>>     ## Use same RTE processing rules in FE
>> RTE.default.FE.proc < RTE.default.proc
>>
>> Regards,
>> Stanislas


More information about the TYPO3-project-rte mailing list