try { FCKConfig.FullBasePath = document.location.protocol + '//' + document.location.host + FCKConfig.BasePath ; } catch (e) { if (document.location.protocol == 'about:') document.location.reload(); else alert('There was an error loading the editor.'); }
This will force a reload of the page which seems to fix the issue for me (Ran into the error testing in Mozilla 1.7.7 Using FckEditor 2.2).
Not sure if the file is the same in the latest version of FckEditor, but I did a quick test to see if the same issue was happening in the latest and it was.
RE: exception on page reload
RE: upgrade to fix
In IE 6.0 this issue never occurred.
RE: exception on page reload
Replace (in internals\fckconfig.js):
FCKConfig.FullBasePath = document.location.protocol + '//' + document.location.host + FCKConfig.BasePath ;
With
try
{
FCKConfig.FullBasePath = document.location.protocol + '//' + document.location.host + FCKConfig.BasePath ;
}
catch (e)
{
if (document.location.protocol == 'about:')
document.location.reload();
else
alert('There was an error loading the editor.');
}
This will force a reload of the page which seems to fix the issue for me (Ran into the error testing in Mozilla 1.7.7 Using FckEditor 2.2).
Not sure if the file is the same in the latest version of FckEditor, but I did a quick test to see if the same issue was happening in the latest and it was.