[TYPO3-rte] Colors in HTMLsrea RTE
Jeppe Donslund
jeppe at donslund.net
Thu Feb 25 17:19:56 CET 2010
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