It is possible to get whatever the user has selected with the mouse using Javascript, like this: http://www.motyar.info/2010/02/get-user-selected-text-with-jquery-and.html
My issue is that I do not just need this text, but I also need:
to get the html surrounding this text (eg. if the user selects "hello" and this hello is in the source produced as: "
<div><span>hello</span></div>
" that is what it should return).to do the same for graphics
Can anyone guide me through this process, or are there alternatives if this is not possible?