In my XaF solution I made a custom Editor based on the ASPxHtmlPropertyEditor.
The SettingsDialogs.InsertImageDialog.SettingsImageUpload.UploadFolder = "~/Images"
When uploading an images, the images is placed in the correct folder (i.e. Images) and is displayed correctly in the editor.
However when inserting the same image from the Gallery the uploadfolder is ignored in the url, resulting in a broken image link.
The resulting HTML in the editor is:
<p>Uploaded image: <img alt="" src="http://localhost:52673/Images/close.png"></p>
<p>Inserted image from Gallery: <img alt="" src="http://localhost:52673/close.png"><br></p>
See a sample project with this issue in the attachment.
Any ideas how to solve this?
Hello,
I have researched your project and found that this behavior is not correct. I have passed this issue to our developers, so they will research it and find the cause of the problem.
As a workaround, I suggest you set the FileManagerSettings.RootFolder property, and the image link will not be broken.
Hi Staton, Thanks for your answer. I had to search to find the Rootfolder but eventually I found it and
editor.SettingsDialogs.InsertImageDialog.SettingsImageSelector.CommonSettings.RootFolder = "~/Images";
works as a workaround.