HTML paragraph tag inserted when copy/paste from Notepad

3 posts, 0 answers
  1. Zohaib
    Zohaib avatar
    2 posts
    Member since:
    Jul 2015

    Posted 23 Jul 2015 Link to this post


    I am copying text from notepad and pasting it in Editor in design mode and when i try to see it in HTML mode, a paragraph tag is inserted around the text.

    Could you please advise me some solution for this issue?

    Thank you

  2. Zohaib
    Zohaib avatar
    2 posts
    Member since:
    Jul 2015

    Posted 23 Jul 2015 in reply to Zohaib Link to this post

    Sorry I forgot to mention that this issue is only in IE.
  3. DevCraft R3 2016 release webinar banner
  4. Ianko
    Ianko avatar
    1510 posts

    Posted 27 Jul 2015 Link to this post

    Hello Zohaib,

    The described behavior stems from IE. When plain text is pasted over, and there are lines separated by two carriage returns, instead of BR tags, paragraphs appear.

    This can be bypassed and altered by using the OnClientPasteHtml event (, and make sure that always plain text is pasted. Plus, to make sure that paragraphs are transformed to BR tags, so to keep the carriage returns in the HTML content. You can also try to configure the StripFormattingOptions ( and see whether you can achieve a satisfying output.

    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