More in this section

Forums / Bugs & Issues / NewLineBR=true not working in paste from word

NewLineBR=true not working in paste from word

2 posts, 0 answered
  1. Alex
    Alex avatar
    10 posts
    21 Nov 2007
    06 May 2008
    Link to this post
    Is there a way to change the behaviour of the strip word formatting component.

    By default when you press return in the editor it uses <p> tags for a new line. We set NewLineBR to true which works great however when the user pastes from word it uses <P> tags again for new lines?


  2. Rumen
    Rumen avatar
    26 posts
    12 Sep 2017
    08 May 2008
    Link to this post
    Hi Alex,

    When the NewLineBr property is set to true, it only handle the Enter key command and inserts <br> tags when a new line is inserted - this property has nothing to do with the paste from Word feature.

    The Paste From Word option just strips the MS Word formatting, MS Word special tags and attributes, but it does not strip the paragraph <P> and any other standard HTML tags. The strip functionality is based on regular expression in the editor's source code and they cannot be modified.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered