Collect the editor's fields into an API payload.
The text editor form
The payload TextsApi.create/update expects
Collect the editor's fields into an API payload.