Playing with the dark art of DOM and caret positioning - moving the cursor in a contenteditable area after modifying the HTML, its hellish 11 years ago ‐ Also on: Twitter | Favourite Retweet Reply Mentions: @glennjones take a look at AT.js might be useful 11 years ago – Remy Sharp on twitter