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

Image Manager Not Inserting Selected Images

1 Answer 16 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 19 Feb 2014, 03:22 PM

We have recently implemented the latest version of the RadControls to address issues using the Editor in Chrome. We are using the RadControls in DotNetNuke 7. For the most part, everything seems to be working okay now, however we are having an issue when selecting images in the Image Manager to insert into the Editor. When we click on the image, the Image Manager window closes but the selected image doesn't appear in the Editor. We are seeing a JavaScript error: 

Uncaught TypeError: Object [object Array] has no method 'cloneNode'  - jquery.js:9597

CloneNode seems to be called in the following method:

  case "ImageManager":
            var callbackFunction = function (sender, args) {
                //result holds the image element   
                var result = Telerik.Web.UI.Editor.Utils.getOuterHtml(args.get_value());
                var div = document.createElement("DIV");
                Telerik.Web.UI.Editor.Utils.setElementInnerHtml(div, result);

                //First child must be the image!    
                var img = div.firstChild;
                div.style.overflow = "hidden";
                div.style.width = "1px";
                div.style.height = "1px";

                document.body.appendChild(div);
                //GET THE INSERTED IMAGE WIDTH AND HEIGHT    
                //alert(img.offsetWidth + " -- " + img.offsetHeight);
                img.width = img.offsetWidth;
                img.height = img.offsetHeight;

                editor.pasteHtml(div.innerHTML, "ImageManager");
            };

Any ideas what might be causing this issue? Should the full RadControls work properly in the DNN environment?  












jquery.js:9597
jquery.js:9597
jquery.js:9597

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 21 Feb 2014, 11:48 AM
Hello Anthony,

The described issue is not reproducible with a simple ASP.NET project. It would be helpful if you are able to isolate this problem outside DNN and provide it, so that it could be properly investigated.

If this is an issue that is reproducible only in DNN's environment, I suggest looking for a proper answer by placing your question in their forum.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Anthony
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or