﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11219	Dragging image2 with caption does not fire paste event	Alfonso Martínez de Lizarrondo	Piotr Jasiun	"Part of: #11437.

Includes: #12090.

=== Solution description ===

1. Editor#paste event has to be modified so it inserts content into passed (as a data property) range or current selection. This is required, so it will be possible to drop between blocks (required by block widgets dnd).

2. Widgets has to fire editor#drop and finalize their entire dnd process only by using this event. Currently we just move DOM element when dnding block widget, but we need to change this, so inline and block widgets dnd will work the same way.

=== Original ticket 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."	Bug	closed	Must have (possibly next milestone)	CKEditor 4.5.0 Beta	UI : Widgets	4.3	fixed		
