I have written a web-application where users can create svg elements with text. I want to simulate contenteditable elements inside the svg elements, so that users can dynamicall
Here's an example:
<div contenteditable="true">
<svg>
<circle cx="10" cy="10" r="5" fill="green" />
<text y="2em">Hello world</text>
</svg>
</div>
http://jsfiddle.net/ZEAwB/
Works in Opera 18, Chrome 33, Firefox (Nightly) 28 and IE9. Probably works in earlier versions of Opera, Chrome and Firefox too, not quite sure how far back though.