Here's my fiddle: http://jsfiddle.net/challenger/u22PD/69.
Draggable
and droppable
are initialized this way:
$lister.find('.draggable').draggable({
stack: 'div'
});
$('#insert-editor .droppable-target').droppable({
drop: function(event, ui) {
var $this = $(this);
$this.html(ui.draggable);
}
});
It is only possible to drag .darggable
item over #image-lister
div. How do I drop a .draggable
item onto the droppable-target
?
Also how to keep the draggable
item after it's been dragged-dropped to the target?