Textedit improvements
Remake cursors, closes #219 and #237