Maybe rename td to text in this method? It used to be td because the editor and it's main object were called TextDrive.