Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6325 closed Bug (duplicate)

should disable drag for fakeobject image

Reported by: yiminghe Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4
Keywords: Cc:

Description

occurs in firefox 3.6.10

1.insert a flash 2.drag the fakeobject img of above flash to somewhere 3.change to sourcemode

expected: show <object>...</object> code

actual fact: show <img />

reason: _cke_realelement attribute was removed when drag in firefox !

i think firefox should be forbidden for drag of fakeobject

if (CKEDITOR.env.gecko) {
            editor.document.on("dragstart", function(ev) {
                var control = ev.data.getTarget();
                if (control.is('img') &&
                    /ke_/.test(control.$.className)
                    ) {
                    //firefox禁止拖放                    
                    ev.preventDefault();
                }
            });
        }

Attachments (3)

dragbefore.png (29.9 KB) - added by yiminghe 10 years ago.
drag.png (6.3 KB) - added by yiminghe 10 years ago.
dragafter.png (20.6 KB) - added by yiminghe 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #6275

People won't like that behavior, and that's only one of the reasons why this bug might appear, copying and pasting is another and we can't forbid everything.

Changed 10 years ago by yiminghe

Attachment: dragbefore.png added

Changed 10 years ago by yiminghe

Attachment: drag.png added

Changed 10 years ago by yiminghe

Attachment: dragafter.png added

comment:2 Changed 10 years ago by yiminghe

i do not understand , it is not same with #6275 , this bug associate with drag and drop behavior in firefox

solution is clear :

just forbid fakeobject(image) to drag in firefox (prevent default of dragstart event when target's classname contains "cke_",such as "cke_flash"), not common image, because when you drag a fakeobject and drop somewhere in firefox,the result is totally wrong

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

Please, test again using Firefox 3.6.8

comment:4 in reply to:  3 Changed 10 years ago by yiminghe

Replying to alfonsoml:

Please, test again using Firefox 3.6.8

i tried 3.6.10 , the latest stable version

see my attachment

maybe it's firefox's bug ,that's odd

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

You just have to test with 3.6.8 as I requested. For further info, please read the linked bug and the bugzilla entry.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy