function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CloudyCloudy 

Use ContentAsset in Experience Cloud HTML Editor

Hi,

I'm trying to use a ContentAsset in an Experience cloud community
I can access it in a Rich Content Editor by referencing the Asset Library
While using the HTML Editor I get a broken link
I tried with 
<img src="{!contentAsset.pdf_60.1}" />
where pdf_60 is the name of my content file and 1 its version.

could you please help?
VinayVinay (Salesforce Developers) 
Hi Cloudy,

Check below reference that can help you.

https://salesforce.stackexchange.com/questions/260688/how-to-display-contentasset-image-in-html-editor-component-in-communities

Thanks,