Request a topic or
contact an Arke consultant
404-812-3123
FCKEditor 404

Arke Systems Blog

Useful technical and business information straight from Arke.

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Archive

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2024

FCKEditor 404

I'm using the FCKEditor ASP.NET control on a web application that's deployed to a virtual directory.  When my app is deployed to the root of a web site, FCKEditor works great.  When I'm deployed in a virtual directory, I get an HTTP 404 error in the FCKEditor IFRAME.  One quick look at the IFRAME properties shows that the URL is missing the virtual directory path.  All prepared to hack on the FCKEditor.cs file, I discovered that some one else already thought of this scenario.  I either overlooked a step in the documentation or this is an undocumented feature.  Regardless, here is a universal solution to the problem...  Just add the following key to the appSettings section of your web.config...

<add key="FCKeditor:BasePath" value="~/fckeditor/"/>

That's it!  By default, FCKEditor uses /fckeditor/ and doesn't try to ResolveUrl to discover your virtual directory scenario.  Only when you add this to your appSettings will FCKEditor look for the ~ and upon finding that will it run the path through ResolveUrl.  That said, adding the above key to your appSettings should solve this problem for 99% of the people dealing with this issue.


Posted by eric stoll on Saturday, May 3, 2008 5:44 PM
Permalink | Comments (0) | Post RSSRSS comment feed