Can't get FCKEditor to work in a virtual directory.

Posted by AngryHacker on Stack Overflow See other posts from Stack Overflow or by AngryHacker
Published on 2010-03-12T06:27:49Z Indexed on 2010/03/12 6:37 UTC
Read the original article Hit count: 533

Filed under:
|
|
|

I have a WebForm that contains the following definition for the FCKeditor:

<FCKeditorV2:FCKeditor ID="txtBody" runat="server" 
            BasePath="/fckeditor/" 
            Height="480px"
            ToolbarSet="WebCal1"                
>
</FCKeditorV2:FCKeditor>

This works fine in my VS2008-based web application. However, when I deploy it to a Virtual Directory in IIS, it looks for the FCKEditor files (e.g. javascript, stylesheets, etc...) in the /fckeditor folder, not in the /MyVirtualDir/fkceditor.

I've tried changing the BasePath to ~/fckeditor/, but then it won't work on my dev machine.

What is the right way to go, so that the FCKEditor maps onto the right directory. In my project the fckeditor directory is right off the root.

© Stack Overflow or respective owner

Related posts about vs2008

Related posts about ASP.NET