Ghost/ghost/admin/lib/koenig-editor/addon
Kevin Ansfield 9993f02ffa 🎨 Added ability to drop an image card onto an empty gallery
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
2021-09-06 11:57:42 +01:00
..
components 🎨 Added ability to drop an image card onto an empty gallery 2021-09-06 11:57:42 +01:00
helpers Added toolbar to email CTA card 2021-08-23 14:10:33 +02:00
lib Resolved "already declared in upper scope" linting warnings 2020-10-05 09:56:21 +01:00
options Added "Email call to action" card for an email-only CTA targeting free or paid members (#2080) 2021-09-02 13:11:15 +01:00
services Removed prototype button atom 2021-07-23 09:21:03 +01:00
utils Prototyped component based atoms in the editor 2021-07-22 18:54:46 +01:00