text editor enhancement