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


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]( “”), it works for me even in IE.