Bug Report T297205
Visible to All Users

ASPxHtmlEditor - CSS styles are not applied correctly after pasting

created 9 years ago

[DevExpress Support Team: CLONED FROM T295900: ASPxHtmlEditor - Iframes are lost after pasting when PasteMode=MergeFormatting]
The "drunk" editor behavior I reported in https://www.devexpress.com/Support/Center/Question/Details/T296354 gave me an idea and now I'm able to reproduce this stably with the attached sample. Looks like it's all about focusing the editor.
In the attached video, I do the following:

  1. Refresh the page.
  2. (Essential!) Click outside of the editor to make it unfocused.
  3. (Essential!) Click the editor to make it focused.
  4. Do Ctrl+A, Ctrl+X, Backspace (to clear the editor), then Ctrl+V. You see CSS classes removed.
  5. Clear the editor again, then press Enter to create a paragraph. Do Ctrl+V in the paragraph. This time, the styles are better, but the outer div's CSS class name is removed, so the "OnlineDoc" marker jumps out of it.
    The issue does not seem to occur without #2-3, that's why it was so hard to reproduce it.
    Nickolay, Software Architect
    ClickHelp - Online Documentation Tool
    http://clickhelp.co
Comments (3)
DevExpress Support Team 9 years ago

    Hello Nickolay,

    I reproduced this behavior in Firefox. It looks unexpected. I've passed this message to our R&D team for thorough research. We will inform you about our results.

    CT CT
    ClickHelp Team 9 years ago

      Helen,
      I saw this in Chrome 45, so probably this is not browser-specific. An interesting thing I see in your video is the way content is selected. Previously, I created a case because Firefox did not select the entire content visually: https://www.devexpress.com/Support/Center/Question/Details/T295498
      What version of Firefox did you use to record your video?
      Nickolay, Software Architect
      ClickHelp - Online Documentation Tool
      http://clickhelp.co

      DevExpress Support Team 9 years ago

        Hello Nickolay,

        The provided video is recorded in Google Chrome. But the same issue occurs in FireFox as well. I've attached another screencast illustrating how the project operates in this browser.

        P.S. I use the most recent version of Firefox (41.0.1). Selection works in the way described in T295498: ASPxHtmlEditor - Selection not displayed entirely in Firefox.

        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.

          Comments (1)
          CT CT
          ClickHelp Team 9 years ago

            Looks like this has been resolved. I hope nothing else got broken in some other place as it often happens with your hotfixes nowadays…
            Nickolay, Software Architect
            ClickHelp - Online Documentation Tool
            http://clickhelp.co

            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.