When using ActionText, f.rich_text_area renders a Trix editor. When I add an attachment to the editor, it starts direct-uploading automatically. If I submit the form before the upload is complete, the attachment will be missing in the text, obviously. I know that the event trix-attachment-add is triggered when an attachment is just added, before the upload starts. What event listener can I add in order to know when the upload is finished?