Opened 15 years ago

Closed 15 years ago

#3470 closed Bug (invalid)

"File Not Found" error when loading editor

Reported by: Paul Hanchett Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

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.

Change History (1)

comment:1 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Keywords: 404 "File Not Found" BasePath removed
Resolution: invalid
Status: newclosed

If you change the default location, then you must state it when you create the object in the BasePath property so it can know where to look for the rest of the files.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy