Move text editor code