Formatting issues with editor

2 posts, 0 answers
  1. Bronwen
    Bronwen avatar
    54 posts
    Member since:
    Sep 2008

    Posted 21 Apr 2009 Link to this post

    Is there a way to turn on p tags for the editors so that when i hit enter twce it gives me p's rather than <br>?
    Also if I apply a h2 to text I can't get rid of it without going into the html view.  If i highlight and select normal or use the css strip formatting it does nothing.
  2. Rumen
    Rumen avatar
    13243 posts

    Posted 24 Apr 2009 Link to this post

    Hi Bronwen,

    The feature to add a <p> tag on hitting the enter key twice is not supported out-of-the box, but if you would like you can try to implement it yourself by attaching to the onkeydown event of RadEditor. You can see how to attach to the content area events in the following help article: attachEventHandler.

    The second problem appears when the content is selected and the h2 item is applied. This operation wraps the content in P tag wrapped itself in H2 tag, e.g.

    This scenario is logged in our todo list and we will do our best to fix it for the next SP2 release.

    If you have an empty selection and apply a heading tag then the content is correctly wrapped in h2 tags


    and you can go outside of the heading tag by just pressing the Enter key.

    For your convenience I have attached a video demonstrating my test.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top