Provides the Markdown textarea behind every text a user writes. Forms reach it through RichTextField, while the comment and chat composers and the inline editors of the profile and playlist pages use it directly.

Interfaces

I
TextEditorHandle

Exposed through the ref of TextEditor, so that the component that opens an editor (a reply, an edit, the chat composer) can focus it.

I
TextEditorProps

Passed to TextEditor by the component that owns the text, which keeps it in its state (the editor is controlled).

Variables

v
TextEditor: React.ForwardRefExoticComponent<TextEditorProps & React.RefAttributes<TextEditorHandle>>

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.