This is a migrated thread and some comments may be shown as answers.

error Kendo UI imageBrower “too much recursion”

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 06 May 2014, 06:18 PM
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)

    <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):

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 09 May 2014, 07:53 AM
Hi Jorge,

Unfortunately, we are unable to recreate such issue locally. Therefore, it will be appreciated if you could provide a small runnable sample (and step-by-step instructions) in which the issue in question can be observed.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Jorge
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or