1

enter image description hereI created a lightning component,and used it in a community.Now i want to show a rich text area fields image in that component.So,for that i queried that field on opportunity object and showed the data using aura:unescapedHtml tag on lighting component.Now the issue i am facing is,it shows me data(text) in lightning but it doesn't show image in it and gives a message "Image not Available because you don't have privileges."

Can anyone help me with this,how can i show image too? Note:I thought this might be a access to the field issue,but i can see text data and not the image so that removes this possibility,else i wouldn't be able to see the text data i f i hadn't had the permission to see field.

1

I got a solution to this.I stored that image in Document and copied its Id from URL and paste it into Rich Text area field.After that simply pass the id in following tag

img src="{!'/servlet/servlet.ImageServer?id='+(Id from Rich text area)+'&amp oid='+(your organistaion Id)}"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.