rails/actiontext/CHANGELOG.md
Petrik 52c21f9066 Only sanitize content attribute when present in attachments
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.
2024-06-12 13:21:55 +02:00

210 B

  • Only sanitize content attribute when present in attachments.

    Petrik de Heus

Please check 7-2-stable for previous changes.