52c21f9066
When the `content` attribute is set for Action Text attachments, Trix shows this content. 1ac6d40d36a07b48a67bc7f8627fd1f92bffcb14 introduced sanitizing the `content` attribute of ActionText::Attachable::ContentAttachment. However, it would also set the `content` attribute when it isn't present. Instead of showing the image preview, Trix would use the empty `content` attribute resulting in missing previews for images.
6 lines
210 B
Markdown
6 lines
210 B
Markdown
* Only sanitize `content` attribute when present in attachments.
|
|
|
|
*Petrik de Heus*
|
|
|
|
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actiontext/CHANGELOG.md) for previous changes.
|