Wrapping text in a texteditor window