Don't use deprecated TextEditor APIs