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

4 posts, 0 answers
  1. Ramesh
    Ramesh avatar
    5 posts
    Member since:
    Oct 2014

    Posted 28 Jul 2015 Link to this post

    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.

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1800 posts

    Posted 30 Jul 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Ramesh
    Ramesh avatar
    5 posts
    Member since:
    Oct 2014

    Posted 01 Aug 2015 in reply to Konstantin Dikov Link to this post

    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. 

      

     

     

  5. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1800 posts

    Posted 04 Aug 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready