Would anyone happen to know how to get the HTML tag directly under a mouse cursor on a web page? I am working on a new type of WYSIWYG, and wish to implement some true drag and drop capabilities (not insert at cursor, which is so common to WYSIWYGs these days); to do that, I need to know where to insert a menu item when a mousebutton up event fires.
Ideas are welcome as well, as I understand it may be a complicated problem.
Here’s an example based upon the link @mightyuhu suggested:
There’s also this: http://jsfiddle.net/5NFeX/3/