text editor (mode 2) works properly