Skip to content
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

Display image caption in Richtext #820

Open
timglorioso opened this issue May 21, 2024 · 0 comments
Open

Display image caption in Richtext #820

timglorioso opened this issue May 21, 2024 · 0 comments

Comments

@timglorioso
Copy link

storyblok.com

Assets have a Caption field. Ideally, these captions are rendered when assets are used in a Richtext field.

Happy to entertain workarounds, I imagine this might be possible with richTextOptions?


Expected Behavior

Caption is rendered below image using figcaption alongside the img inside a figure.

Current Behavior

Captions aren't rendered.

Steps to Reproduce

  1. Upload image asset
  2. Add caption to image asset
  3. Create content type with richtext field
  4. Add image asset to richtext field
  5. Use RichTextRenderer to render the content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants