[TextEditor] Fix API break.