added text editor partial implementation