Hello,
I am trying to use igHTMLEditor in an MVC4 project and the editor does not display correctly. Specifically the toolbars do not display.
I set up a project containing only the editor and tried to mimic one of the basic IG online samples. The layout and view files are attached along with a screen shot. The result is the same in IE, Chrome, Firefox and Safari.
I do get an error: Uncaught TypeError: Cannot read property 'mouseup' of undefined
in: infragistics.ui.shared.js
If anyone has a suggestion how to fix this I would appreciate it!
Thanks,
Randy
Hello Randy,
I am just following up to see if you need any further assistance with this matter.
You can also add the required JavaScript files for the controls you are using if you are not using igLoader. Refer to the link below that will give you more details on the required JavaScript files for each control:
http://help.infragistics.com/NetAdvantage/jQuery/2013.1/CLR4.0?page=Deployment_Guide_JavaScript_Files.html
I hope this helps.
Hi Bhadresh,
There is one other thing -- when I use the CDN to get the js files, I get the "Ignite UI Trial Version" message on my website. I do have a purchased license but don't know how to get rid of the message. That is why I have been referencing the js files from the web server, I don't get the trial message when I do that.
Hello Bhadresh,
I was able to get the editor working using your example as a guide. However, this introduced a separate issue into my project. Here is what happened:
With the other IG controls in my project I have not used the loader but rather initialized the control in the document.ready function, as in this example:
$(function(){
$('#videoDiv).igVideoPlayer({...});
});
So in my layout file I have been referencing infragistics.js instead of the loader. In order for the htmlEditor to work I had to not only add the reference to infragistics.loader.js in my layout, but also remove the reference to infragistics.js. When I did that, all of my other controls quit working.
How would you suggest I deal with this issue?
Will I need to wrap every script reference to "('#someTag').igControl()" with the syntax using the loader as in your example?
Thank You,
Thank you Bhadresh!
I believe you are correct that some sort of required script or file might be missing. However, I have not been able to find it.
In any event, your sample project does work as expected for me. I will keep looking for that missing reference and update you soon.
Thank you again,