I'm using the editor to image gallery of Kendo UI, the editor works fine (links, formats, etc. ..) and upload the photos to the gallery and read a service (rest); the problem is that when wanting to insert any image in the gallery get the error:
"too much recursion ... ute (i)," string "== typeof r) {try {r =" true "=== r 0:" false "=== r1:" null "r === null: + r ... jquery .... min.js (line 3) "
The funny thing is that when you remove the configuration "uploadURL", if you insert pictures in the textarea; obviously the plugin no longer gives me the option to upload.
In the documentation (http://docs.telerik.com/kendo-ui/api/web/editor # configuration-ImageBrowser): did not find details about how to fix it.
HTML(Razr)
Js
Json(read rest service):
"too much recursion ... ute (i)," string "== typeof r) {try {r =" true "=== r 0:" false "=== r1:" null "r === null: + r ... jquery .... min.js (line 3) "
The funny thing is that when you remove the configuration "uploadURL", if you insert pictures in the textarea; obviously the plugin no longer gives me the option to upload.
In the documentation (http://docs.telerik.com/kendo-ui/api/web/editor # configuration-ImageBrowser): did not find details about how to fix it.
HTML(Razr)
<
script
type
=
"text/javascript"
src
=
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
></
script
><
br
> <
script
type
=
"text/javascript"
src
=
"/js/vendor/kendo-ui/kendo.all.min.js"
></
script
><
br
><
br
> <
div
class
=
"k-content"
><
br
> <
textarea
id
=
"KEditor"
rows
=
"10"
cols
=
"30"
placeholder
=
"@GetText("
Content")"
maxlength
=
"255"
style
=
"height: 500px"
></
textarea
> <
br
> </
div
>
Js
$(document).ready(
function
() {<br> $(
"#KEditor"
).kendoEditor({<br> tools: [<br>
"fontName"
,<br>
"fontSize"
,<br>
"foreColor"
,<br>
"backColor"
,<br>
"bold"
,<br>
"italic"
,<br>
"underline"
,<br>
"justifyLeft"
,<br>
"justifyCenter"
,<br>
"justifyRight"
,<br>
"justifyFull"
,<br>
"insertUnorderedList"
,<br>
"insertOrderedList"
,<br>
"indent"
,<br>
"outdent"
,<br>
"createLink"
,<br>
"unlink"
,<br>
"insertImage"
,<br>
"viewHtml"
<br> ],<br> imageBrowser: {<br> transport: {<br> read: {<br> type:
"GET"
,<br> url:
"/api/sites/user-gallery"
,<br> },<br> destroy:
"/api/sites/user-gallery?action=delete"
,<br> thumbnailUrl:
function
(path, name) {<br>
var
pictureUrl = decodeURIComponent(name);<br>
return
pictureUrl;<br> },<br> uploadUrl:
"/api/sites/user-gallery?action=upload"
,
//work if this line is commented<br> imageUrl: function(name) {<br> var pictureUrl = decodeURIComponent(name);<br> return pictureUrl;<br> },<br> }<br> } <br> //, messages: { viewHtml: '@GetText("ViewHtml")'}<br> });<br> });
Json(read rest service):
{
"pictureId"
:1369437,
"name"
:
"http://s3.amazonaws.com/nocnokdemo-img/1404301211033c10e4f43bdb468ba132ef12048d2438.jpg"
,
"type"
:
"f"
,
"size"
:1024,
"url"
:
"http://s3.amazonaws.com/nocnokdemo-img/1404301211033c10e4f43bdb468ba132ef12048d2438.jpg"
}