Skip to content

Adds default trix content attachmment partial path #35485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Adds default trix content attachmment partial path #35485

merged 1 commit into from
Mar 11, 2019

Conversation

excid3
Copy link
Contributor

@excid3 excid3 commented Mar 5, 2019

Summary

ActionText automatically renders out the to_partial_path for attachables when rendering rich text. However, when you edit the rich text field, attachments don't render the same partial path for Trix making it seem like your attachments disappeared.

This makes it so attachables use the same partial path for rendering to html and to Trix. This way they'll render consistently in both cases.

cc @georgeclaghorn

@rails-bot rails-bot bot added the actiontext label Mar 5, 2019
@georgeclaghorn georgeclaghorn requested a review from javan March 9, 2019 13:09
@javan javan merged commit f1b8bb4 into rails:master Mar 11, 2019
@javan
Copy link
Contributor

javan commented Mar 11, 2019

Thanks!

javan added a commit that referenced this pull request Dec 3, 2019
A regression introduced in 764803e caused blobs to appear as HTML content attachments instead of file / image attachments when editing rich text content. This change restores the original intended behavior.

References: #35485, basecamp/trix#706
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants