mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
9993f02ffa
closes https://github.com/TryGhost/Team/issues/1013 Image cards could be dropped into a gallery when at least one image was already present but there was no handling for image cards being dropped onto an empty gallery. - added `data-gallery` attribute to the placeholder element so it gets picked up by the drag-and-drop container registration - added drag enter/leave event handlers so we can show the same dropzone indicator as when a standard file is being dropped onto an empty gallery - updated the drop handling to handle insertion when no images already exist by forcing insertion at index `0` - updated the register or refresh handler to switch between different drag-and-drop container elements as needed and switched to `scheduleOnce` to prevent duplicate containers being created if the function is called twice before render occurs |
||
---|---|---|
.. | ||
addon | ||
app | ||
docs/specs | ||
public/icons/koenig | ||
index.js | ||
package.json |