Home › Forums › JavaScript › “csstricks like” texteditor › Re: “csstricks like” texteditor
February 27, 2013 at 9:00 am
#126294
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.