Update TextEditor.cs