Contentful logo

Contentful Community

Rich-text.php image render

Hi friends!)
Can someone have a working example of how to render php rich text in which pictures, videos, and assets are inserted?
thanks!

Hi @vladimir ,

You will probably need to create your own Asset renderer, to render a media asset inline, instead of a link. The source code for the hyperlink could be a good starting point: rich-text.php/AssetHyperlink.php at master · contentful/rich-text.php · GitHub