code was moved from editor to section since it makes more sense to have it there.

also ui.draggable.attr("data-type")