NBSPs when pasting MS Word text in 'PastPureText' mode

Last post 04-07-2010, 11:07 AM by AndriiChuk. 4 replies.
Sort Posts: Previous Next
  •  04-06-2010, 11:52 PM 59909

    NBSPs when pasting MS Word text in 'PastPureText' mode

    Hello Guys!
     
    I've recently upgraded CuteEditor to the latest  build and got the following trouble.
    When inserting text from the MS Word in 'PastePureText' mode I get the words separated by NBSPs.
    However, I just need text inserted without any formatting and/or NBSPs at all.
     
    For instance, when I insert the following text in the MS Word:
     
    Spring came to its full majesty to Kyiv, so many people, as well as I with my parents, went to their summer houses for the weekend. I don’t know whether it’s typical for other countries, however in Ukraine and Russia there is the trend when many megalopolis inhabitants live their homes for the weekends to spend warm days planting the cabbages, digging the garden or simply lying smoothly on a nature sunbathing and breathing fresh country oxygen.
     
    I get the following:
     
    Spring<br />
    came&nbsp;to&nbsp;its&nbsp;full&nbsp;majesty&nbsp;to&nbsp;Kyiv,&nbsp;so&nbsp;many&nbsp;people,&nbsp;as&nbsp;well&nbsp;as&nbsp;I&nbsp;with&nbsp;my&nbsp;parents,<br />
    went&nbsp;to&nbsp;their&nbsp;summer&nbsp;houses&nbsp;for&nbsp;the&nbsp;weekend.&nbsp;I&nbsp;don’t&nbsp;know&nbsp;whether&nbsp;it’s&nbsp;typical<br />
    for&nbsp;other&nbsp;countries,&nbsp;however&nbsp;in&nbsp;Ukraine&nbsp;and&nbsp;Russia&nbsp;there&nbsp;is&nbsp;the&nbsp;trend&nbsp;when&nbsp;many<br />
    megalopolis&nbsp;inhabitants&nbsp;live&nbsp;their&nbsp;homes&nbsp;for&nbsp;the&nbsp;weekends&nbsp;to&nbsp;spend&nbsp;warm&nbsp;days&nbsp;planting<br />
    the&nbsp;cabbages,&nbsp;digging&nbsp;the&nbsp;garden&nbsp;or&nbsp;simply&nbsp;lying&nbsp;smoothly&nbsp;on&nbsp;a&nbsp;nature<br />
    sunbathing&nbsp;and&nbsp;breathing&nbsp;fresh&nbsp;country&nbsp;oxygen.
     
     This can also be reproduced on your demo site (http://www.cutesoft.net/example/editor-onpaste.aspx).
    What can I do with that?
     
     Sincerely,
    Andrii
  •  04-07-2010, 1:02 AM 59910 in reply to 59909

    Re: NBSPs when pasting MS Word text in 'PastPureText' mode

    Hi AndriiChuk ,

     Try EditorOnPaste="PasteText"

     <CE:Editor ID="editor1" runat="server" EditorOnPaste="PasteText">

            </CE:Editor>

    Regards,

    ken

  •  04-07-2010, 9:51 AM 59917 in reply to 59909

    Re: NBSPs when pasting MS Word text in 'PastPureText' mode

    AndriiChuk:
    Hello Guys!
     
    I've recently upgraded CuteEditor to the latest  build and got the following trouble.
    When inserting text from the MS Word in 'PastePureText' mode I get the words separated by NBSPs.
    However, I just need text inserted without any formatting and/or NBSPs at all.
     
    For instance, when I insert the following text in the MS Word:
     
    Spring came to its full majesty to Kyiv, so many people, as well as I with my parents, went to their summer houses for the weekend. I don’t know whether it’s typical for other countries, however in Ukraine and Russia there is the trend when many megalopolis inhabitants live their homes for the weekends to spend warm days planting the cabbages, digging the garden or simply lying smoothly on a nature sunbathing and breathing fresh country oxygen.
     
    I get the following:
     
    Spring<br />
    came&nbsp;to&nbsp;its&nbsp;full&nbsp;majesty&nbsp;to&nbsp;Kyiv,&nbsp;so&nbsp;many&nbsp;people,&nbsp;as&nbsp;well&nbsp;as&nbsp;I&nbsp;with&nbsp;my&nbsp;parents,<br />
    went&nbsp;to&nbsp;their&nbsp;summer&nbsp;houses&nbsp;for&nbsp;the&nbsp;weekend.&nbsp;I&nbsp;don’t&nbsp;know&nbsp;whether&nbsp;it’s&nbsp;typical<br />
    for&nbsp;other&nbsp;countries,&nbsp;however&nbsp;in&nbsp;Ukraine&nbsp;and&nbsp;Russia&nbsp;there&nbsp;is&nbsp;the&nbsp;trend&nbsp;when&nbsp;many<br />
    megalopolis&nbsp;inhabitants&nbsp;live&nbsp;their&nbsp;homes&nbsp;for&nbsp;the&nbsp;weekends&nbsp;to&nbsp;spend&nbsp;warm&nbsp;days&nbsp;planting<br />
    the&nbsp;cabbages,&nbsp;digging&nbsp;the&nbsp;garden&nbsp;or&nbsp;simply&nbsp;lying&nbsp;smoothly&nbsp;on&nbsp;a&nbsp;nature<br />
    sunbathing&nbsp;and&nbsp;breathing&nbsp;fresh&nbsp;country&nbsp;oxygen.
     
     This can also be reproduced on your demo site (http://www.cutesoft.net/example/editor-onpaste.aspx).
    What can I do with that?
     
     Sincerely,
    Andrii
     
    Andrii,
     
    Can you try the following example and get back to me?
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-07-2010, 11:02 AM 59920 in reply to 59910

    Re: NBSPs when pasting MS Word text in 'PastPureText' mode

    Hi Kenneth,
     
    Thank you for quick reply!
    I get the same in the 'PastPureText' mode.
     
    Sincerely,
    Andrii
  •  04-07-2010, 11:07 AM 59921 in reply to 59917

    Re: NBSPs when pasting MS Word text in 'PastPureText' mode

    Hi Adam!
     
    Thank you for trying help me.
     
    After trying the example you suggested, I stopped getting the &nbsp;.
    However, I get <br/> in random places now, so that for the same text I get:
     
    "Spring came to its<br />
    full majesty to Kyiv, so many people, as well as I with my parents, went to<br />
    their summer houses for the weekend. I don’t know whether it’s typical for<br />
    other countries, however in Ukraine and Russia there is the trend when many<br />
    megalopolis inhabitants live their homes for the weekends to spend warm days<br />
    planting the cabbages, digging the garden or simply lying smoothly on a nature<br />
    sunbathing and breathing fresh country oxygen."

    Have any ideas how this can be resolved?
     
    Sincerely,
    Andrii
View as RSS news feed in XML