Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6631 closed Bug (duplicate)

Element attributes dropped during copy/paste in Firefox 3.5.15 environment

Reported by: irpf Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.6.5
Keywords: Cc:

Description

This problem was recently discovered with FF 3.5.15. Not sure which version of FF introduced it. The problem does not exist in IE 8.

Bug: If an input element (type = "image") is copied to the clipboard and then pasted, the element's attributes are not preserved in the pasted instance, nor are any event handlers such as onclick=buttonClicked(this). (Same for onFocus, onBlur).

Change History (6)

comment:1 Changed 13 years ago by irpf

Additional info: I've confirmed that the problem is NOT present in Firefox 3.01.

The problem IS present in FF version 3.6.12, as well as 3.5.15. So, it was introduced somewhere between 3.01 and 3.5.15.

comment:2 Changed 13 years ago by irpf

OK. Apparently this is a documented problems (and a big one) across all browser-based editors. Lots and lots of web pages now broken. Mozilla screwed things up royally. See: https://bugzilla.mozilla.org/show_bug.cgi?id=596300

Again, copy/paste works perfectly (as it used to work in Firefox) in IE 8.

comment:3 Changed 13 years ago by Alfonso Martínez de Lizarrondo

Keywords: copy paste removed
Resolution: duplicate
Status: newclosed

Dup of #6275

comment:4 in reply to:  3 Changed 13 years ago by irpf

Replying to alfonsoml:

Dup of #6275

This is a dup of #6275??? 6275 is related to insertHtml and the last comment in that ticket indicates that FF build 3.6.11 fixes the insertHtml problem. However, it does not fix the copy/paste issue described in this ticket.

comment:5 Changed 13 years ago by Alfonso Martínez de Lizarrondo

#6275 is really about the problems due to Mozilla changing the handling of inserting/pasting/dropping content into editable areas. They fixed part of the problems, but refused to correct all of them on the basis that "it can lead to a security problem in other browsers".

Even if we change the data protection, it won't be perfect and there are issues that will remain no matter what we do because the browser doesn't provide us with the correct data.

comment:6 in reply to:  5 Changed 13 years ago by irpf

Replying to alfonsoml:

Even if we change the data protection, it won't be perfect and there are issues that will remain no matter what we do because the browser doesn't provide us with the correct data.

Yes, I understand and agree. It's just that the last comment in 6275 might lead some to believe that the problem is fixed with FF build 3.6.11, when it is not. My only recourse at this point is to tell users to either not use FF or if they do use FF, they must switch the editor to HTML mode to perform copy/paste.

Thanks.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy