[Typo3] RTE replaces <div> with <p>

Pieter pieter_v at telenet.be
Sun May 22 19:05:32 CEST 2005


Christopher wrote:

>>It will have the result you seek.  The only potential problem left then
>>is that a <p class="bodytext"> tag is added to table cells.  That
>>can/will mess up tables.
>>
>>    
>>
>
>Why? 
>
>td p.bodytext {padding:0;margin:0;} 
>
>...(or some variation) in your stylesheet should fix that problem,
>even if the paragraph elements can't be prevented from appearing in
>table cells...
>
>
>-Christopher
>
>  
>
This code in hrmlArea RTE will be broken on the web page:
    <table cellspacing="10" cellpadding="1" border="0" 
style="border-width: 0pt; text-align: left; vertical-align: middle; 
width: 100%;">
        <tbody>
            <tr>
                <td style="text-align: left; vertical-align: top; 
background-color: rgb(255, 255, 153);">
                    <div style="text-align: center;"><span 
style="font-weight: bold;">WITH</span><br/>
                    </div>
                    <div style="text-align: left;">
                        <ul>
                            <li><a 
href="http://testing.com">Unconditional<br/></a></li>
                        </ul>
                    </div>
                    <div style="text-align: center;">
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

The result on my site is (this is with "remapTag >" in the typoscript):
    <table cellspacing="10" cellpadding="1" border="0" 
style="border-width: 0pt; text-align: left; vertical-align: middle; 
width: 100%;" class="contenttable">
        <tbody>
            <tr>
                <td style="text-align: left; vertical-align: top; 
background-color: rgb(255, 255, 153);">
<p class="bodytext">
                    <div style="text-align: center;"><span 
style="font-weight: bold;">WITH</span><br/>
                    </div>
                    <div style="text-align: left;"></p>
                        <ul>
                            <li><a href="http://testing.com" 
target="_blank">Unconditional<br/></a></li>
                        </ul>
<p class="bodytext">
                    </div>
                    <div style="text-align: center;">
                    </div></p>
                </td>
            </tr>
        </tbody>
    </table>

Typo3 think it's better to have some <p> and </p> scattered all over the 
table. 
I would like to have no transformations a all between the content of the 
RTE, the MySQL database and the output.  Is this an option?

Pieter




More information about the TYPO3-english mailing list