Id being appended to sibling elements

2 posts, 1 answers
  1. Andrew
    Andrew avatar
    1 posts
    Member since:
    May 2019

    Posted 13 May 2019 Link to this post

    Has anyone else had to deal with this or have any recommendations for a workaround?

    There is a bug with the editor that is causing it to append multiple elements with the same id.

    This is reproducible in latest example pages here:

    Steps to reproduce:

    1. Create a div(or h2, etc) element with an id in the html editor e.g. <div id="test">This id will be duplicated</div>
    2. Swap to design mode and click after the div or element you added and hit enter any number of times.
    3. Each new paragraph that is created has the id of its previous sibling e.g. <p id="test">&nbsp;</p>

    This is very frustrating for content creators trying to link to sections of a document and it is obviously not valid HTML.

  2. Answer
    Rumen avatar
    14471 posts

    Posted 16 May 2019 Link to this post

    Hi Andrew,

    This is a browser behavior as you can test and reproduce in an editable div/iframe element at

    The content area of RadEditor is an editable iframe/div and it exhibits the same browser operation of the Enter key command.

    The scenario and a solution is discussed at New Line Repeating Class.

    Best regards,
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top