Bug Report T295900
Visible to All Users

ASPxHtmlEditor - Iframes are lost after pasting when PasteMode=MergeFormatting

created 9 years ago

Hello,

I'm facing a number of issues with content pasted in the Merge mode in my application. Take a look at the attached screencast (2015-10-01_1919.swf). The issues are (all this occurs in Chrome, can't check with Firefox due to other Firefox-specific issues):

  1. When I press Ctrl+A, then Ctrl+X, two nodes remain in the markup: the <p> node and an additional <div> node with my class at the end of the document, which is not expected.
  2. If I use Backspace to remove all the content and then paste it, the redonly inputs are pasted without CSS classes (but classes persist for divs) and with strange style values (I mean <div style>). Also, the iframe is not pasted.
  3. Then, I undo the changes and repeat the operation (select all, cut all). This time, I paste in a <p> tag, not into an empty document. The inserted styles are, well, strange. Looks like the outer div with the dashed border has lost its class now and therefore its internal readonly input is not positioned properly (it has position: absolute specified). Again, no iframe. If I choose to use source formatting instead, things will get better, but still no iframe.
  4. Then, I repeat steps 1-2, but choose source formatting this time. The result is the same as for #3: styles are fine, but no iframe.

Unfortunately, all those divs with specific classes, absolutely positioned readonly inputs and iframes are parts of complex entities in my applications, so I cannot allow changing their styles and removing their parts. At the same time, I was hoping to improve content pasting from Word and therefore I decided to use Merged pasting by default. So, this issue is important for me.

The only thing I can reproduce with a standalone sample you can find in the attachment is the disappearing iframe (see 2015-10-01_1945.swf, this happens with Chrome and Firefox). However, I hope that you'll be able to do something regarding the other issues without reproducing them. For example, I don't think it is reasonable to remove CSS class names from pasted content in the Merge mode. I think CSS class names should be never removed. At least, I cannot imagine a use case with which you'll want to remove CSS classes when merging the formatting as you don't know what those classes meant (what styles were associated with them) in the source document, from which the content was copied.

Nickolay, Software Architect
ClickHelp - Online Documentation Tool
http://clickhelp.co

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

    Thank you for the additional information, Nickolay; it will be useful for our R&D team. Should you discover any other details, feel free to post them here at any time.

    CT CT
    ClickHelp Team 9 years ago

      Vladimir,
      Nice to see you're working with me again :)
      I'll certainly do if needed, but I think you should have all the things you need for now (sample project, steps and the video for all issues). We should probably split this case - my fault, I was too lazy (shame on me!) to report the removed CSS classes as a separate item and now the current case says "Reproduced" and I don't know whether it's about the original removed iframes issue (it probably is) or about the removed CSS classes issues (two of them, actually, depending on whether you're inserting in a <p> or in a totally empty document - not sure whether it's the same problem or not), which I was not originally able to reproduce, but managed to reproduce later and described in my previous comment.
      Please move my previous comment with reproduction steps into one or two cases (depending on how you will consider the CSS class removal issues). I know you can do that ;-)
      Nickolay, Software Architect
      ClickHelp - Online Documentation Tool
      http://clickhelp.co

      DevExpress Support Team 9 years ago

        Hello Nickolay,

        This ticket is dedicated to the issue with iframe on pasting. Thus, it would be better to create a separate thread for unexpected behavior with CSS styles. I suggest that we will continue our conversation in this regard here: T297205: ASPxHtmlEditor - CSS styles are not applied correctly after pasting.

        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 (2)
          CT CT
          ClickHelp Team 9 years ago

            The fix resolved the issue for me, thanks!
            Nickolay, Software Architect
            ClickHelp - Online Documentation Tool
            http://clickhelp.co

            DevExpress Support Team 9 years ago

              We are happy to hear that the issue is resolved!

              Best regards,
              Helen

              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.