Edited TextEditor for proper tabbing.