Paste from Word option of Editor changes the indentation of lines

2 posts, 0 answers
  1. Shikhar
    Shikhar avatar
    5 posts
    Member since:
    Oct 2015

    Posted 26 Oct 2015 Link to this post

    Hi I have an issue with 'Paste from Word' option of telerik Editor. When i copy some text from MSWord and paste it in the editor using 'Paste from Word'  option, the indentation of  some lines changes. I also tried this on Telerik's demo site:
    http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx

    and the issue is present there as well. I have attached  original document and the screenshot of the changed indentation after using 'Paste from Word'.

    I have tried this on IE and Chrome as well and the issue occurs on both.

    Please look  into it as this changes the text to an unacceptable format.

     

    Thanks

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 27 Oct 2015 Link to this post

    Hi Shikhar,

    Could you try the following:

    • paste the content into the following editable <div>. I am asking for this because RadEditor works with the content the browser provides and it is very likely that the browser strips the formatting you want:
      <div contentEditable="true" style="width: 400px; height: 400px; border: 2px solid red;"></div>

      If the behavior is the same between RadEditor and this div, then the issue comes from the browser and RadEditor cannot fix this.
    • try setting the StripFormattingOptions property to None so RadEditor will not modify the content from Word.

    On a side note - forums only accept images as attachment so the document itself is not available. If the suggestions above do not help, I advise that you open a formal support ticket where you can attach a zip with your file so we can investigate.

    Regards,

    Marin Bratanov
    Telerik
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top