Cute Editor duplicating content after <div> tags

  •  07-19-2010, 3:49 PM

    Cute Editor duplicating content after <div> tags

    Hello,
     
             I have noticed this issue when trying edit some HTML in the editor. This is part of the content I am trying to edit; notice the <p> and <span> tags around the <div> tag.
    <html>
        <body>
            <table >
                <tr>
                    <td >
                    <p align="left"><span style="font-size: 10pt; font-family: Arial">
                    <div align="center"></div>
                    <br />
                    Test String 1
                    <br />
                    </span></p>
                 </td>
                </tr>
            </table>
        </body>
    </html>
     
     
    After I paste this in the editor in the HTML mode; and switch to Normal mode and then back to the HTML mode; I see the text following the <div> tag getting duplicated like this.
     
    <html>
        <body>
            <table>
                <tbody>
                    <tr>
                        <td>
                        <p align="left"><span style="font-size: 10pt; font-family: Arial">
                        <div align="center"></div>
                        <br />
                        Test String 1
                        <br />
                        </span></p>
                        Test String 1 </td>
                    </tr>
                </tbody>
            </table>
        </body>
    </html>
     
     
    I am able to reproduce it on your demo here.
     
     
    The issue seems to be because of both the <p> and <span> tags around the <div> tag; if I remove either, the duplicating of the content stops.
     
    Is there a work around for this issue?
View Complete Thread