Bug Report T293774
Visible to All Users

Text pasted from MS Word is incorrectly formatted in ASPxHtmlEditor

created 9 years ago

Hello.

I have a problem with words  copied from MS Word.

Steps:

  1. I copy the text in MS Word
  2. I paste the text in ASPxHtmlEditor and to save.
  3. I Show the text in XtraReports.

In attachment has a example project.

I need to show the text exactly equal the MS Word.

Comments (1)
Vasily (DevExpress Support) 9 years ago

    Hi Felipe,

    I pasted your text (copied form the MS Word file you have attached) to the ASPxHtmlEditor control in the HTML Editor Overview online demo, and I see that the text is displayed in the ASPxHtmlEditor differently. So, I decided to forward this issue to our developers for further research. We will update this thread once we have any progress on this issue. Please bear with us.

    Answers approved by DevExpress Support

    created 9 years ago (modified 9 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Additional information:

    The fix provided in this ticket will work only for the Chrome browser. This is caused by the fact that some of MS Word styles are being lost when the text is pasted to the browser (because of the browser limitations). Anyway, after pasting from MS Word, Chrome stores most of the styles in a <style> element,  so it is possible for us to restore these styles in our HTML editor component. But, it is not possible to do this in other browsers (like IE and Firefox).

      Show previous comments (4)
      Artem (DevExpress Support) 9 years ago

        Hi Felipe,

        You can open our demos for v12.1 locally to find an example:
         C:\Users\Public\Documents\DXperience 12.1 Demos\ASP.NET\ASPxHtmlEditor\CS\ASPxHtmlEditorDemos
        Find the \Features\ImportExport.aspx page to check how it works.

        Let me know if you have further difficulties.

        FS FS
        Felipe Silva 3 9 years ago

          Hi.
          I'm using the solution ASPxHtmlEditor.Import but not work, not keep formated css.
          See attachment.

          Artem (DevExpress Support) 9 years ago

            To avoid discussing multiple topics in this thread, I have extracted your next inquiry to a separate ticket created on your behalf: T295749: ASPxHtmlEditor - The Import method doesn't keep formatted CSS. For quick and efficient responses, we kindly request that future tickets cover one issue at a time. Your time and cooperation are appreciated.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.