Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1015
Force relative path when inserting image
posted

When I insert an image the WebHtmlEditor puts the full path into the markup.  This is an issue because I am developing on my PC, it will then move to a development server for testing, and then it will move again to the production server - all of which have different base URLs but the same folder structure.  How do I tell the editor not to paste in the full path - only the relative path from the site root? 

I am using 7.1.20071.40 - would a newer version work better?

Here is my current code:

edExplanation.UploadedFilesDirectory = "~/UploadedFiles";