[TYPO3-RTE] how to keep title attribute in rtehtmlarea?

Stanislas Rolland stanislas.rolland at fructifor.ca
Thu Jan 12 00:41:00 CET 2006


Hi Onno,
> 
> How do you keep title attributes on span tags in the rte (specifically 
> rtehtmlarea)?
> 
> Whenever I type in: <span title="some text">...</span>, the title 
> attribute is stripped.
> 
> In the Page TSConfig I've tried this:
> 
> 
> RTE.config.tt_content.bodytext.proc {
>    allowedClasses=uitleg_begrip,H1, H2, H3, P, bodytext, authors
>    denyTags=font, size
>    tags.span.allowedAttribs = id, class, title, alt
> }
> 
> 
> -- but it does not seem to work somehow, even though the text is indeed 
> saved into tt_content.
> 
The only attributes allowed on span tags are: class,style,xml:lang

This is hardcoded in t3lib_parsehtml_proc. Perhaps we should we get rid 
of this hardcoded list?

Stanislas



More information about the TYPO3-project-rte mailing list