Exposed through the ref of TextEditor, so that the component that opens an editor (a reply, an edit, the chat composer) can focus it.
focus(options?: { atEnd?: boolean; preventScroll?: boolean; }): void
Focuses the textarea. atEnd puts the caret after the last character and
scrolls the text there. preventScroll leaves the page and its scrollers
where they are.