Originally Posted by Airblader
Gotcha now – I didn't read that line carefully enough. Sorry. Does my jsFiddle work for you, though? Because it works for me both on Ubuntu and Windows.
It does. The problem was with the way I was setting up the textarea. Once that was fixed everything works as it should.