Opened 11 years ago
Last modified 10 years ago
#11219 closed Bug
Dragging image2 without caption fires paste event — at Initial Version
Reported by: | Alfonso Martínez de Lizarrondo | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 4.5.0 Beta |
Component: | UI : Widgets | Version: | 4.3 |
Keywords: | Cc: |
Description
Using Firefox (other browsers untested), open http://ckeditor.com/demo#widgets and set in the console a listener for paste:
CKEDITOR.instances.editor2.on('paste', function() { alert("pasted")})
Test that it works with Ctrl+C, Ctrl+V, Ok so far.
Now drag the image widget. The magic line appears and everything works fine.
Then edit the image and disable the "Captioned image" in the dialog.
Now when the image is dragged, the magic line doesn't appear and a paste event is fired upon drop, the HTML seems to include the whole widget.
Using the normal editor everything works fine, no paste is fired for dragging an image around.