Editor replaces div with p

2 posts, 0 answers
  1. Ivan
    Ivan avatar
    16 posts
    Member since:
    Oct 2011

    Posted 04 May 2012 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    14419 posts

    Posted 08 May 2012 Link to this post

    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.
Back to Top