Rad Editor unexpected behavior on Chrome

2 posts, 0 answers
  1. Ankur
    Ankur avatar
    2 posts
    Member since:
    Oct 2012

    Posted 15 Oct 2012 Link to this post

    Hello,

    in addition to following post:
    http://www.telerik.com/community/forums/aspnet-ajax/editor/overide-telerik-web-ui-editor-commandlist-inserttab-not-working-in-chrome-safari.aspx

    i am having another issue with Rad Editor and that is:
    NewLineBr = "false" (due to other bugs on IE)

    now using CHROME, when is type following in content area:
    a
    b
    c
    d

    on "inspect element" i found it to be:
    <p>a</p>
    <p>b</p>
    <p>c</p>
    <p>d</p>

    now when i click "Bullet List" tool bar button it become:
    <UL>
    <li>a</li>
    <li>b</li>
    <li>c</li>
    <li>d</li>
    </UL>

    so far its good, but when i click "Bullet List" toolbar button gain, it become:
    a
    <br/>
    b
    <br/>
    c
    <br/>
    d

    the issue here is i need to reapply <p> tags again as it was before hittin "Bullet List" button first time.

    Any/All help will be appreciated.
  2. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 15 Oct 2012 Link to this post

    Hello,

    The NewLineBr (obsolete) and NewLineMode properties apply only to the Enter key command and they have nothing to do with the InsertOrderedList and InsertUnorderedList commands. The observed behavior is browser one and it can be reproduced in an editable div/iframe element. The browser always separates the bullet lines with <br /> tags when removing the bullet formatting from the selected text.

    Best 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