[TYPO3-rte] Colors in HTMLsrea RTE
Stanislas Rolland
typo3 at sjbr.ca
Thu Feb 25 15:45:20 CET 2010
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