[TYPO3-RTE] P Tags added in RTE
    Stanislas Rolland 
    typo3 at sjbr.ca
       
    Wed Nov 12 01:47:58 CET 2008
    
    
  
Sergio Catalá Gil a écrit :
> When I started to design my site, I decided not using the "rtehtmlarea"
> extension because it usually added some labels that spoiled my code. Now
> I need to use this extension because I added some editors in the backend
> that don't know HTML. 
> 
> For the time being, I only face two problems: 
> 
> * It adds (rtekeep = "1") attribute to my links. How can I remove it?
Normally this happens when you have non-typolink attributes on your 
link. But, I think that the attribute is not kept in the database nor 
rendered in the FE.
> 
> * It adds (and that's the most important part for me) <p></p> tags to
> some code. If I have the next labels:
> 
>  <div><div><img ... />text</div></div>
> 
>  RTE converts the code to:
> 
>  <div><div><p><img ... />text</p></div></div>
> 
Wrapping with p on pressing enter is a IE behaviour. By default, the RTE 
is configured to behave the same way in other browsers. This may be 
disabled in Firefox, Safari and Opera with
RTE.default.disableEnterParagraphs = 1
Consistent with this default behaviour, the default RTE transformation 
will also wrap text with p. But I think that if there is no attribute on 
the p tag, it is not kept in the database. Result in the frontend will 
depend on the rendering configuration.
Regards,
Stanislas
    
    
More information about the TYPO3-project-rte
mailing list