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,
Based on my understanding this behavior can be present if the script files are missing. I was not able to see the behavior you described. I have attached a sample based on the attachment you have provided. I have used CDN as well as local references and the application works as expected.
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,