Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28272, comment 40


Ignore:
Timestamp:
09/21/2015 02:42:08 AM (9 years ago)
Author:
azaozz
Comment:

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 :)
     1Selecting a different node on `dragstart` will always be problematic as it is a bit of a "Catch 22" :)
    22
    3 Imho this will work best as described in [#comment:9 comment:9]:
     3We 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
     5Imho this will work best as described in [#comment:9 comment 9]:
    46- On dragstart check if image is selected, check if it is wrapped in a link or caption node, store ref to it.
    57- 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.