update reference to text editor