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

Paste Text from Word file into editor - Alignment/Color Issue

3 Answers 162 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 28 Jul 2015, 12:18 PM

We are facing formatting issue while pasting content in editor from other sources like word file.

1. Color of text get remove and default black color shows. If content is in bold, it maintain the boldness of text.

2. Alignment of text get remove and show left alignment where as actual alignment is center.

3. Many time headers of paragraphs get repeat and shows duplicate header (e.g. H1, H2 etc..).

Looking for solution to deal with such scenarios. Please suggest some available solutions for above cases.

Regards

Ramesh D.

 

 

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Jul 2015, 05:41 PM
Hello Ramesh,

I have tested the scenario that you are describing and copy-pasted some formatted text from MS Word, but the styles are preserved correctly on my side.

Can you please test in the following online demo and see if the format is preserved on your side too:
Looking forward to your reply.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ramesh
Top achievements
Rank 1
answered on 01 Aug 2015, 06:06 AM

Hello Konstantin,

Thank you for your reply!!

We have tried on demo link which you have provided us in your reply. We are able to reproduce the same on demo link.

We are attaching a sample text with current formatting. This should help you to reproduce on demo link as well.

Looking forward to get quick help on this problem. Thank you!!

 

Regards

Ramesh D. 

  

 

 

0
Konstantin Dikov
Telerik team
answered on 04 Aug 2015, 01:23 PM
Hello Ramesh,

Indeed, with the document that you have provided, once you copy and paste its content, the styles will be lost, but this is due to the fact that the lines are styles with a Title format, which will not be parsed. You should have in mind that when you paste content from MS Word, that content will be parsed to clear HTML. For handling not supported scenarios (like the Title format), you can refer to the following forum thread:

Best Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Ramesh
Top achievements
Rank 1
Share this question
or