Hi, i'm using the MVC wrapper for the EditorFor and when i try to select an image that is in nested folders the path i'm getting back has the "/" encoded as %2F.
so if i selected an image that was in a folder 1 or more levels down,
If my root is http://test.test.com/images
and i selected
http://test.test.com/images/Accounts/image.png
I would get
http://test.test.com/images/Accounts%2Fimage.png
I can find all sorts of examples for the Kendo UI version of the editor, where you have to specify a function that will return the url in order for it not to be encoded but nothing for the MVC wrapper.
Html.Kendo()
.EditorFor(x => x.Page)
.Messages(m => m.InsertHtml(
"Insert Snippet"
))
.Tools(t => t
.ViewHtml()
.Snippets(s => {
foreach
(var control
in
controls)
{
s.Add(control.FieldLabel, GetControlSnippet(control));
}
})
.CustomButton(x => x.Name(
"maximize"
).Exec(
"maximize"
))
).ImageBrowser(imageBrowser => imageBrowser
.Image(
"http://test.test.com/images/{0}"
)
.Read(
"Read"
,
"ImageBrowser"
)
.Destroy(
"Destroy"
,
"ImageBrowser"
)
.Upload(
"Upload"
,
"ImageBrowser"
)
.Thumbnail(
"Thumbnail"
,
"ImageBrowser"
)
)
.Encode(
false
)
Can you please help? i've been banging my head against my desk trying to find a solution for what seems to be a simple problem.