For text editor