My files are stored in 'files' under App launcher.
I have a Rich text box field 'description' in a object wherein i enter text and images. Here, the images are entered as tags. the 'src' attribute of tag contain the public url of the image which i stored in 'files' in the App launcher.
For eg:
<img src="https://<domain>.cs21.my.salesforce.com/sfc/p/#q00000000sNA/a/q00000008a0b/6woo3x9YQNR7vTXR2oOOmknAOjpytHMEnZc2nGQ3F54"/>
Now, i want to build a lightning component 'preview', which will take this field 'description' and read the image and show the text and image to the client to review.
I am stuck on how to read the img and display the image from the URL.
I am new to lightning. Can you please help me to achieve this?
img
tag like you did, but you need to make sure that your url is correct. try opening that url on your browser first. how do you build your url?