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

Pasting <ul> and <table> content gets malformed

3 Answers 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 11 Dec 2013, 07:53 PM
Hi,

I am not sure if this is related to the previous pasting problems that were reported, but when I paste perfectly legit html that contains a table or ul it malforms the html.

Example:  .html file:
<html>
<body>
<p>PAGE HEADER</p>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
</ul>
 
<table>
<tbody>
<tr>
<td>R1C1</td>
<td>R1C2</td>
<td>R1C3</td>
</tr>
<tr>
<td>R1C1</td>
<td>R2C2</td>
<td>R3C3</td>
</tr>
<tr>
<td>R3C1</td>
<td>R3C2</td>
<td>R3C3</td>
</tr>
</tbody>
</body>
</html>
In the pasted event, e.html reports this:
<p style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; line-height: normal;">PAGE HEADER</p><ul style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; line-height: normal;"><li>A</ul></li><li>B</li><li>C</li><li>D</li><li>E</li><li>F</li><table style="font-family: 'Times New Roman';"><tbody><tr><td>R1C1</table></tbody></tr></td><td>R1C2</td><td>R1C3</td><tr><td>R1C1</tr></td><td>R2C2</td><td>R3C3</td><tr><td>R3C1</tr></td><td>R3C2</td><td>R3C3</td>


I am using the latest internal build, 2013.3.1127 and Chrome if that matters.

Thank you,
David A.

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 12 Dec 2013, 12:01 PM
Hi David,

I was not able to reproduce the issue that you are describing. I have pasted the same HTML in a Kendo UI Editor and it seems to be formatted as expected. Please check this demo and tell me if I missed something:

http://jsbin.com/EsaFahA/1

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David A.
Top achievements
Rank 1
answered on 13 Dec 2013, 12:42 AM
Hi Kiril,
If you take the attached test.html document, preview it in your browser, select all the text and then paste into your jsbin example you should hopfefully see the same result that I see - malformed html.

Thanks,
David A.
0
Kiril Nikolov
Telerik team
answered on 14 Dec 2013, 09:09 AM
Hello David,

Please note that the html that you are pasting is invalid as it is missing a closing </table> tag. However I have managed to reproduce the bug that you are describing, and I am glad to inform you that it is fixed with the latest build available at the moment. So please download the latest build, update your project and let me know if the problem still persists.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
David A.
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
David A.
Top achievements
Rank 1
Share this question
or