mardi 27 janvier 2015

Rangy insert html at caret


I'm using Rangy to do things with contenteditable. How would I go about inserting html at the position of the caret with maximum cross-browser consistency?



Hello world
<br>
<br>
<br>
<span id="inserted">I was inserted here!</span>
<br>




Aucun commentaire:

Enregistrer un commentaire