If one drags an element from within a contenteditable
the browser usually shows such an "intermediate caret" as can be seen in the image below:
I am looking for a simple and reliable solution to drag an element from within a contenteditable
by sending the elements ID as transfer data via drag and drop. Then, in the ondrop
method I intend to place the draggable
at the exact position where this "intermediate caret" is currently at.
The question is: Will I be able to get this information from all the browsers?
I do have a base (JSFiddle) but that's far from being useful for me at the moment.
PS: I am not using jQuery or any other libraries.