adds text mode to the editor