We handle drops for various file formats and for recognizable url formats. The Factory plugin becomes the suitable item. Drops to the background adds new pages to the current tab without modifying anything.
Background drops are handled in lib/legacy.
$('.main') .bind 'dragenter', (evt) -> evt.preventDefault() .bind 'dragover', (evt) -> evt.preventDefault() .bind "drop", drop.dispatch page: (item) -> link.doInternalLink item.slug, null, item.site
See also Sortable Events