#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)
Change History (8)
comment:1 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Changed 14 years ago by
Attachment: | dragbefore.png added |
---|
Changed 14 years ago by
Changed 14 years ago by
Attachment: | dragafter.png added |
---|
comment:2 Changed 14 years ago by
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:4 Changed 14 years ago by
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 14 years ago by
You just have to test with 3.6.8 as I requested. For further info, please read the linked bug and the bugzilla entry.
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.