I’m adding a attachment from a dialog. It works great, but I’d like to add attributes to it and then use them when rendering the attachment. Is this possible? I think it is because by default image attachments can have a caption and presentation stored in data-trix-attributes.
Is this a possible way to store and retrive attributes for an attachment? If so, How do I write to data-trix-attributes and then retrive those values in the partial?