This is a migrated thread and some comments may be shown as answers.

HTML formatting issue with Editor

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
kartik
Top achievements
Rank 1
kartik asked on 28 Apr 2015, 04:45 PM

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>
============================================================

      

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 30 Apr 2015, 01:29 PM
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.

 
Tags
Editor
Asked by
kartik
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or