Changes between Initial Version and Version 1 of Ticket #28272, comment 40
- Timestamp:
- 09/21/2015 02:42:08 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28272, comment 40
initial v1 1 Selecting a different node on `dragstart` will always be problematic as it is a bit of a "Catch 22" . We need to change the selection '''before''' the dragging starts, but the event is fired '''when''' the dragging starts:)1 Selecting a different node on `dragstart` will always be problematic as it is a bit of a "Catch 22" :) 2 2 3 Imho this will work best as described in [#comment:9 comment:9]: 3 We need to change the selection '''before''' the dragging starts, but the event is fired '''when''' the dragging starts. Also, in contenteditable images are draggable but block tags are usually not. 4 5 Imho this will work best as described in [#comment:9 comment 9]: 4 6 - On dragstart check if image is selected, check if it is wrapped in a link or caption node, store ref to it. 5 7 - On dragend check if the image was actually moved in the DOM, move the previous wrapper to the new location and append the image in it.