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

Editor replaces div with p

1 Answer 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 04 May 2012, 10:14 AM
I have the following scenario:
1. Editor is configured to use p tags as a line-breaks
2. insert the following HTML:
<div style="border-bottom: #ccc 1px solid; padding-bottom: 5px; background-color: #f7fafb; padding-left: 15px; padding-right: 10px; border-top: #ccc 1px solid; padding-top: 0px;">
<h5>On this page</h5>
<ul>
    <li>item one</li>
</ul>
</div>
3. switch to the design view and press enter after the item one node to add another list item
4. check the HTML

Result:
div tag is replaced with p one:
<p style="border-bottom: #ccc 1px solid; padding-bottom: 5px; background-color: #f7fafb; padding-left: 15px; padding-right: 10px; border-top: #ccc 1px solid; padding-top: 0px;">
<h5>On this page</h5>
<ul>
    <li>item one</li>
    <li></li>
</ul>
</p>
The browser is Internet Explorer 9

How can I make the editor not to replace div tag?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 May 2012, 02:54 PM
Hi,

Thank you for reporting this bug.

I was able to reproduce it and logged it for fixing in our bug tracking system. Here you can find the PITS Issue: Public URL and track its progress.

I also updated your Telerik points in your account for the bug report.


Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Ivan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or