I have a child div whose parent div is draggable with content-editable set to true. I am using jQuery UI to make its parent div to be draggable but the child div loses its contenteditable attribute.
My question is why that child div is showing this kind of behaviour?
$(".draggable").draggable();
I’m not sure if editing and dragging can occur together. Anyway, you can cancel dragging when clicking on the editable area:
To enlarge draggable area, you need to shrink editable one, something like this:
A working demo at jsFiddle.