When I launch the image browser from an Editor the image seems to load up properly, however when I launch the image browser from "Inline Editing" all I get is a list of undefined objects.
I am using version 2013.2.918. Here is the code I am using to instantiate the editors:
Inline Editing Version:
Editor Version in my CMS:
Can anyone tell me why these two methods would give different results? I've attached screenshots.
Using fiddler both methods make the same exact web request and get the same exact json response.
I am using version 2013.2.918. Here is the code I am using to instantiate the editors:
Inline Editing Version:
$(document).ready(
function
() {
$(
".rich-text"
).kendoEditor({
encoded:
false
,
tools: [
"bold"
,
"italic"
,
"underline"
,
"insertImage"
],
imageBrowser: {
path:
"/"
,
transport: {
read:
"/cms/imagebrowser/read"
,
destroy:
"/cms/imagebrowser/destroy"
,
create:
"/cms/imagebrowser/create"
,
thumbnailUrl:
"/cms/imagebrowser/thumbnail"
,
uploadUrl:
"/cms/imagebrowser/upload"
,
imageUrl:
"/content/cms/images/{0}"
}
}
});
});
@model string
@(Html.Kendo().EditorFor(m => m)
.Encode(false)
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline().Strikethrough()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.CreateLink().Unlink()
.InsertImage()
.SubScript()
.SuperScript()
.TableEditing()
.ViewHtml()
.Formatting()
.FontName()
.FontSize()
.FontColor().BackColor()
)
.ImageBrowser(imageBrowser => imageBrowser
.Image("~/content/cms/images/{0}")
.Read("read", "imagebrowser", new { Area = "cms" })
.Create("create", "imagebrowser", new { Area = "cms" })
.Destroy("destroy", "imagebrowser", new { Area = "cms" })
.Upload("upload", "imagebrowser", new { Area = "cms" })
.Thumbnail("thumbnail", "imagebrowser", new { Area = "cms" })
)
)
Using fiddler both methods make the same exact web request and get the same exact json response.