Renders a textarea that completes @mentions and :emoji, opens an emoji
picker from its button, and counts characters near maxLength. A pasted or
dropped image is uploaded to POST /api/attachments with the session's
token and inserted as Markdown, so the editor must sit under AuthProvider.
The textarea is read-only while an upload runs.
React.ForwardRefExoticComponent<TextEditorProps & React.RefAttributes<TextEditorHandle>>