[TYPO3] htmlarea 1.7.5

Xavier Perseguers typo3 at perseguers.ch
Thu Sep 4 18:38:34 CEST 2008


Hi,

>  >Advise? Write valid HTML. <li> cannot be child of <p> or <div> but only
>  >of <ul> and <ol>.
> 
> It is within ul. I have content element (part of more complex FCE) which 
> I am mapping at <ul> INNER, which means my <li> tags are all wrapped 
> with <ul>. Do you get me? I should get:
> <ul>
>     <li><a href="http://www.goog.com/?id=26">Dufs</a></li>
>     <li>Dufs</li>
>     <li>Dufs</li>
>     <li>Dufs</li>
>     <li>Dufs</li>
>     <li>Dufs</li>
>     <li><a href="http://tld.com/?id=32" target="_self" 
> class="internal-link" title="Opens internal link in current 
> window">Dufs</a></li>
> </ul>

This is what I said with valid HTML. The result code would be valid 
because at the end it will be enclosed in <ul> but as a RTE point of 
view, your code is not valid!

> Instead, htmlarea rte gets me:
> <ul>
>     <ul><li><a href="http://www.goog.com/?id=26">Dufs</a></li></ul>
>     <ul><li>Dufs</li></ul>
>     <ul><li>Dufs</li></ul>
>     <ul><li>Dufs</li></ul>
>     <ul><li>Dufs</li></ul>
>     <ul><li>Dufs</li></ul>
>     <ul><li><a href="http://tld.com/?id=32" target="_self" 
> class="internal-link" title="Opens internal link in current 
> window">Dufs</a></li></ul>
> </ul>

I think you may investigate the use of

RTE.default.allowTagsOutside and adding 'li'. Perhaps it might help or 
put you on the good track. I'm not sure because I think this config is 
used for 'p' and 'div' tags.

How do you generate <li> without corresponding <ul> using the RTE? 
Because I'm pretty sure <ul> are generated automatically when you add a 
bullet list. Do you manually edit the html at the end? Then why do you 
use a RTE? And why don't you change your FCE definition to be <ul> OUTER 
instead of INNER?


-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-english mailing list