Update text editor