The relative path works if I run as a mobile web app on a browser. But for PhoneGap, the image will not show. I manually replaced the relative path stored in the database directly with the full path (eg: http://mydomain.com/upload/image.jpg) and it works. Therefore, I need to store the uploaded image in the database with the full path, not the relative path. I need to know how to set the HTML Editor to do so.