This is a migrated thread and some comments may be shown as answers.

Paste from Word option of Editor changes the indentation of lines

1 Answer 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shikhar
Top achievements
Rank 1
Shikhar asked on 26 Oct 2015, 07:17 AM

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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Oct 2015, 02:07 PM

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
Tags
Editor
Asked by
Shikhar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or