Got this working with jquery-collision.min.js 1.0.2 and jquery-ui-draggable-collision.min.js 1.0.2.
Just replace your dragMe and obstacle jquery with the following and add a style class to the elements you wish to drag:
$(".dragMe").draggable({
start: function( event, ui ) {
$(this).removeClass('dragMe');
},
stop: function( event, ui ) {
$(this).addClass('dragMe');
},
obstacle: ".dragMe",
preventCollision: true,
containment: "#moveInHere"
});
HTML:
<div class=" dragMe dragMeCSS">Drag me...</div>
<div class="dragMe dragMeCSS">...but not in here.</div>
</div>
http://jsfiddle.net/Minority/zqwer0vr/1/
The removeClass function keeps the element you are dragging from seeing itself as an obstacle. And since you are removing this class while you are dragging the element, it is necessary to create a separate style class for each element so that the style is retained.