Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript “csstricks like” texteditor Re: “csstricks like” texteditor

#126294
dgriesel
Participant

I finally had the time to check your code. One problem was that in your IE if-block, startPos was never defined. I changed the logic a bit. Now getInputSelection distinguishes between IE and the rest, so you don’t have to duplicate the insertion code.

Check [this CodePen](http://codepen.io/anon/pen/rDfIw “”), it works for me even in IE.