Pita/etherpad-lite — pull request #313 by jhollinger (2012-01-04 23:21:17+00:00)
Title: Fix cursor jump in IE when clicking edit buttons

This fixes issue #292, where clicking any of the edit buttons on the left (bold, bullets, undo, etc.) resets the cursor position to the first char in the first line in IE8. (FYI, I was only able to test this change in IE8.)

Note that this does *not* fix the similar buggy behavior in IE8 of the buttons on the right (import/export, embed, etc). Those clicks are handled quite differently, and probably require some heavier refactoring. And since they aren't edit buttons, the problem isn't as noticeable.