I am trying to change the cursor to "pointer" for specific elements in content editable divs.
The below html code does not work as expected in Internet Explorer 8 and 9.
Any ideas how to set cursor style for elements in editable divs?
<div contenteditable="true">
<img src="http://images3.wikia.nocookie.net/__cb20100430200315/fantendo/images/0/06/Foo.jpg" style="cursor:pointer"/>
</div>
Here's an example of how to change the cursor for a
contenteditable
div
(into a mouse/text caret similar toꕯ
to indicate that text editing and selection is possible).The
div
also contains childrena
link elements which inherit this setting and so need to be explicitly set to the standardcursor
.(The example contains links to the documentation at MDN.)