add text editor mode