[TYPO3-rte] Using <code>-tags in ul-lists?

Stanislas Rolland typo3 at sjbr.ca
Sat Jan 29 02:41:07 CET 2011


Hi Mattias,
>
> TYPO3 4.4.4 / RTE 2.0.5
> TYPO3 4.3.5 / RTE 1.8.11
>
> After some tinkering, I've managed to get all the extra buttons in RTE
> to be displayed, and <code>, <cite> and friends work nicely in RTE and
> seem OK in the database.
>
> In the FE, these tags work OK if in normal text (paragraphs), but when
> I've added them inside of nested ul/ol lists, they are encoded in the
> frontend and the tags themselves show up: &lt;code&gt;.
>
> I'm guessing that this has to do with externBlocks and parseFunc, but a
> lot of googling, reading TSref, API and RTE-documentation, hasn't given
> me something that works. So, does anyone have working examples of what I
> need to add in template and/or page TS?
>
I think you need something like

lib.parseFunc.allowTags := addToList(code,cite)
lib.parseFunc_RTE.allowTags := addToList(code,cite)

in your TS template setup.

Regards,
Stanislas


More information about the TYPO3-project-rte mailing list