1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/lib/koenig-editor/addon/lib/dnd
Kevin Ansfield aa8c0200e3 Added ability to drag images in and out of galleries
no issue

- adjust drag handlers in the editor and gallery card to handle drag/drop of image cards as well as straight images
- adjust drag handlers in the gallery card to handle image inserts as well as re-orders
- add `onDragEnd` event/action to the Koenig drag-n-drop handler so that containers can perform cleanup if one of their draggables was successfully dropped into a different container
- change ghost element when dragging an image card to be an image rather than a card icon
  - allow `createGhostElement` function passed in when registering a drag-n-drop container to fall back to the default behaviour by returning a falsy value
2019-07-05 14:54:22 +01:00
..
constants.js 🐛 Fixed drag-n-drop card reordering interfering with caption and markdown/html card text selection 2019-01-28 09:35:58 +00:00
container.js Added ability to drag images in and out of galleries 2019-07-05 14:54:22 +01:00
scroll-handler.js Added auto-scroll when dragging gallery images (#1083) 2018-12-13 12:17:43 +00:00
utils.js Added drag-and-drop card re-ordering in the editor (#1085) 2018-12-17 14:02:40 +00:00