New Line Behavior When Pasting

2 posts, 0 answers
  1. J. David
    J. David avatar
    4 posts
    Member since:
    Feb 2011

    Posted 01 Jun 2015 Link to this post

    We currently have implemented RadEditor with the default paragraph tag new line mode.  It is working correctly - when someone hits the Enter key in the editor, it encapsulates the content within paragraph tags.

    However, when we paste content in from the clipboard, RadEditor is generating a <br/> tag for each new line.

    We would like the Editor to have the same paragraph tag new line behavior when pasting.  Is there an easy way to do this, or is writing a custom filter the only way to handle it?


  2. Ianko
    Ianko avatar
    1956 posts

    Posted 04 Jun 2015 Link to this post


    The NewLineBehavior only instructs what to happen when Enter is hit. Whereas, pasting content, cannot be modified by this functionality. No matter, what option is chosen, P, BR and DIV are always considered as new lines, but a replacement of one tag to another is not a job of the new line behavior.

    As pasting should always lead to an output that is the same as the source from where text is copied, there is no automatic built-in functionality for that. Indeed, the only option is to create a custom content filter (, that achieves the required results.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top