texteditor improvements