HTML formatting issue with Editor

2 posts, 0 answers
  1. kartik
    kartik avatar
    11 posts
    Member since:
    Jun 2014

    Posted 28 Apr 2015 Link to this post

    We have recently upgraded the telerik controls from v2010.2.1029.35 to v2014.3.1209.35. With old version, when we paste the HTML content shown below in the 'HTML' mode and then switch to the 'Design' mode, the editor removes the duplicate 'HEAD', 'TITLE', 'BODY' tags automatically. But when the same thing is done with the upgraded  one, the editor removes all the content  with the duplicate tags except the last one.

    Any suggestion why it is behaving differently? Thanks in advance for the suggestions.

    =====================================================
    <html><head><body topmargin=0 leftmargin=0> <html><head></head><body topmargin="0" leftmargin="0" style="height: 291px; color: black; font-family: times new roman; font-size: 12pt; background-color: white;" jquery111105915575585243771="3"><p><title></title><span style="color: rgb(0, 0, 0);">desc12333</span></p><p><span style="color: rgb(0, 0, 0);">asasa</span></p><p><span style="color: black;"><DIV style="PAGE-BREAK-INSIDE: avoid"><html><head><body topmargin=0 leftmargin=0> <html>

        <head>
            <title></title>
        </head>
        <body style="font-family: times new roman; font-size: 12pt;" leftmargin="0" topmargin="0">
            <span style="color: #000000;">220 220</span> <br />
            -----------<br />
            <br />
        </body>
    </html>
    </body></head></html></span></p><p><span style="color: rgb(0, 0, 0);">&nbsp;</span></p></body></html></body></head></html>
    ============================================================

          

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 30 Apr 2015 Link to this post

    Hi Kartik,

    Examining the same even without RadEditor, by creating a simple HTML page with  the same content, the results are the same. Typically, RadEditor tries to reuse any possible content from multiple body and head tags and merge them into one document. Although, the described scenario seems to me more related to browser validation. You can examine this screencast—http://screencast.com/t/LaQcgrMQ0JrH.

    Regards,
    Ianko
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top