There are basically 2 easy ways of achieving it.
Method 1: Data URIs
We can host the images "inline", inside the forum or userview menu itself.
For example, we want to show the image below in a Rich Text Editor in Userview Builder.
Figure 1: Sample photo
- Save the photo above to your local.
- Go to http://jpillora.com/base64-encoder/
- Drag the photo saved previously into the website above.
- Copy the code generated.
- Go to your Userview Builder, edit the Userview Menu - Rich Text Editor.
- Click on HTML Source.
Add the img tag into the HTML Source Editor and put in the code copied earlier into the src attribute.
<img src="PASTE THE CODE HERE"/>
Reference: https://css-tricks.com/data-uris/
Method 2: Hosting the file from your web server
Assuming that you are running on the default application web server, Tomcat, we can create a new folder in the webapps folder to specifically host images.
- In the webapps folder, create a new folder called images.
- Put the image file hi.png into the new folder.
- Go to your Userview Builder, edit the Userview Menu - Rich Text Editor.
- Click on HTML Source.
Add the img tag into the HTML Source Editor and construct the URL path to the image.
<img src="/images/hi.png"/>