Ghost/ghost/admin/lib/koenig-editor
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
..
addon 🎨 Added ability to drop an image card onto an empty gallery 2021-09-06 11:57:42 +01:00
app Added ability to update snippet contents (#2073) 2021-09-01 09:09:40 +01:00
docs/specs Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
public/icons/koenig Added divider button to email CTA card toolbar 2021-08-23 16:22:56 +02:00
index.js Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
package.json Remove deprecated ember-cli-htmlbars-inline-precompile dependency 2019-10-14 09:51:40 +01:00