"File Not Found" error when loading editor
|Reported by:||paulha||Owned by:|
When the fckeditor package is not installed at the root of the web server, "File Not Found" displays instead of the editor. (However, the sample programs all work as expected.)
Diagnosis: The problem is that fckeditor.js:50 BasePath is set to "/fckeditor/" rather than "fckeditor/", making the path to the installation absolute rather than relative to the calling file; this doesn't work well if the files are not being served from a web server.
Making the file path relative doesn't work very well either, as all references then become relative to the source html file.
Ultimately, BasePath should be set only in the installation configuration file, and examples should not set BasePath at all.
Best of all would be for the fckeditor.js file to automatically figure out what its base path must be.