Another issue that I have is this function to convert it to CKEditor, that I still don't know what's the equivalent for this in CKEditor:
The purpose of this function is to load first the FCKeditor, when it loads it gets all the data that's why I have this getDistributorDefaults function. Not sure what is the equivalent for FCKeditor_OnComplete function to CKEditor.
Let me know.
Thanks in advance.
function FCKeditor_OnComplete(editorInstance) {
//mark this email editor as loaded (by setting the corresponding hidden variable to "1"...they all start out as "0")
editorName = editorInstance.Name;
getElement(editorName + "_loaded").value = "1";
//check to see if all the editors have been loaded
if (allEditorsAreLoaded() == true)
{
//all the editors have been loaded, so go ahead and load in the email defaults
getDistributorDefaults(getElement('frmMain'));
}
}The purpose of this function is to load first the FCKeditor, when it loads it gets all the data that's why I have this getDistributorDefaults function. Not sure what is the equivalent for FCKeditor_OnComplete function to CKEditor.
Let me know.
Thanks in advance.

Re: FCKeditor_OnComplete to CKEditor
I tried to code something like this:
CKEDITOR.on('instanceReady', function( evt ) { var editorName = evt.editor; getElement(editorName + "_loaded").value = "1"; if (allEditorsAreLoaded() == true) { getDistributorDefaults(getElement('frmMain')); } } );But it gives an error to this line:
That it is 'undefined' is null or not an object.
Let me know what's wrong with this?
Thanks in advance..
Re: FCKeditor_OnComplete to CKEditor
Re: FCKeditor_OnComplete to CKEditor
http://cksource.com/forums/viewtopic.php?f=11&t=22557
Re: FCKeditor_OnComplete to CKEditor
alfonsoml