Hi , I just use the sample editor HTML
and click insert image ,always shows 405 method not allowed
how can i solve this problem??
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"Content/kendo.common.css"
/>
<
link
rel
=
"stylesheet"
href
=
"Content/kendo.default.css"
/>
<
link
rel
=
"stylesheet"
href
=
"Content/kendo.dataviz.css"
/>
<
link
rel
=
"stylesheet"
href
=
"Content/kendo.dataviz.default.css"
/>
<
script
src
=
"Scripts/jquery-1.10.2.js"
></
script
>
<
script
src
=
"Scripts/kendo.all.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"example"
>
<
div
class
=
"box"
>
<
p
>Allowed file types for the Image browser are: jpg, jpeg, gif, png</
p
>
<
p
>Allowed file types for the File browser for this demo are: txt, doc, docx, xls, xlsx, ppt, pptx, zip, rar, jpg, jpeg, gif, png</
p
>
</
div
>
<
textarea
id
=
"editor"
rows
=
"10"
cols
=
"30"
style
=
"height:440px"
>
</
textarea
>
<
script
>
$(document).ready(function() {
// create Editor from textarea HTML element with default set of tools
$("#editor").kendoEditor({
tools: [
"insertImage",
"insertFile"
],
imageBrowser: {
messages: {
dropFilesHere: "Drop files here"
},
transport: {
read: "/test/",
destroy: {
url: "/test/",
type: "POST"
},
create: {
url: "/test/",
type: "POST"
},
thumbnailUrl: "/test/",
uploadUrl: "/test/",
imageUrl: "/test?path={0}"
}
},
fileBrowser: {
messages: {
dropFilesHere: "Drop files here"
},
transport: {
read: "/kendo-ui/service/FileBrowser/Read",
destroy: {
url: "/kendo-ui/service/FileBrowser/Destroy",
type: "POST"
},
create: {
url: "/kendo-ui/service/FileBrowser/Create",
type: "POST"
},
uploadUrl: "/kendo-ui/service/FileBrowser/Upload",
fileUrl: "/kendo-ui/service/FileBrowser/File?fileName={0}"
}
}
});
});
</
script
>
</
div
>
</
body
>
</
html
>