I am using a cute editor with a simple toolbar(B, I, U, A, ab) for a CRUD as part of the "add" and the "edit" windows. We have 4 environments. Local, Dev, QA and production. When the code got to QA we started getting the above error(window.CuteEditorInitialize is not a function) in some of the attempts to add(a template of HTML)(The page where the add button resides has a dropdown menu that loads templates from different categories and different hotel/properties from the db). I did some testing and I get the same result twice. Some times I can get the editor to show by clicking the refresh button in the i-frame modal window once, sometimes I have to click twice to get it, sometimes I dont get it at all after 5 refreshes. Sometimes I change the property and the category and click the add button and the editor appears, and if it appears for a property once it will always appear. Then I waited a while and tried again and found that the editor appeared right away for properties that had not appeared before and for which I got the above error. I also tried using Fire Bug and got some weird behavior. When the error appeared in FB I then shut it down and tried it without FB and the editor showed, i.e. no error. Then I tried it again and again and found that the error appeared, for the one property, only when I was using FB. When I was not using it the editor appeared correctly.
Here is the tag to the editor in the code:
<cute:Editor ID="Template_editor" runat="server" ThemeType="Office2003" UseRelativeLinks="false" RemoveServerNamesFromUrl="false" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/FFTET.config" EditCompleteDocument="true" RemoveTBODYTag="true" UseFontTags="true" UseSimpleAmpersand="true" width="780px" Height="320px" />
This lines are at the top of my .ascx file: (I do not know what version of the Cute Editor Im using)
<%
=Html.Javacript("~/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&file=Gecko_Loader")%>
<%
@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="cute" %>