thank, it works. another issue, i want to set the contenteditable to ON so that I can write. but it seems after set it to ON, i still cannot write. Before I made it draggable, it did work. but now not.
The .draggable() will "hijack" the click event, therefore the contenteditable still works but not when clicking on the DIV. It will still work when you tab to the element, though.
Workaround: Introduce a drag-handle element to the draggable, so that you can only drag the element with the handle. Then the contenteditable element of the draggable will still react on click