Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Assets that are only referenced in Rich Text Field not appearing in asset collection #15

Closed
mlawd opened this issue Apr 18, 2020 · 0 comments

Comments

@mlawd
Copy link

mlawd commented Apr 18, 2020

I have a custom Post type that has two elements: and Asset element and a Rich Text element.
I have 2 images uploaded to assets.
1 has been selected for the Asset element and this appears in the assets collection.
The other asset is embedded in the rich text field. This asset does not appear in the assets collection.

The asset element in the rich text html passes in the URL as the id so I can render the images, however the fact that the full asset is not in the in the asset collection means I cannot add the asset description to the alt tag or request different sizes/formats via the api.

I believe I have a potential fix which I'm happy to push to a branch but wanted to check I haven't missed some configuration or done something wrong

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant