With Javascript, I want to select an Image Object in a contenteditable DIV. After the selection (in Internet Explorer) the selected Image should have corners which can be dragged via Mouse. I mean the same corners which usually appear, when I manually click the Image.
This is the image which should be selected (corners should appear):
<div id="editor" contenteditable="true">
<img src="//www.google.com/images/logos/google_logo_41.png" id="google_logo">
</div>
I already did a unsuccessful try in http://jsfiddle.net/4Ynvv/7/
Does someone have a (Crossbrowser) solution?
I don’t know about a crossbrowser solution, but know how to get it working in IE.
Check this out: http://jsfiddle.net/VJD5Q/