比较不错的修改FCKEditor的修改方法
修改后的代码下载http://www.cnblogs.com/Files/Truly/FCKeditor_Truly.rar
sUserFilesPath = (string)Application["FCKeditor:UserFilesPath"] ;
// Try to get from the "Session".
if ( sUserFilesPath == null || sUserFilesPath.Length == 0 )
{
sUserFilesPath = (string)Session["FCKeditor:UserFilesPath"] ;
// Try to get from the Web.config file.
if ( sUserFilesPath == null || sUserFilesPath.Length == 0 )
{
sUserFilesPath = System.Configuration.ConfigurationSettings.AppSettings["FCKeditor:UserFilesPath"] ;
// Otherwise use the default value.
if ( sUserFilesPath == null || sUserFilesPath.Length == 0 )
sUserFilesPath = DEFAULT_USER_FILES_PATH ;
// Try to get from the URL.
if ( sUserFilesPath == null || sUserFilesPath.Length == 0 )
{
sUserFilesPath = Request.QueryString["ServerPath"] ;
}
}
}
// Check that the user path ends with slash ("/")
if ( ! sUserFilesPath.EndsWith("/") )
sUserFilesPath += "/" ;
}
return sUserFilesPath ;
}
}
由此,可以在Global里或者程序任意位置(加载fckeditor前可以运行到的位置)设置Application["FCKeditor:UserFilesPath"] ,或者Session,或者Webconfig,或者action中的请求参数等。
to be continued...
附:js版FCKEditor下载:http://prdownloads.sourceforge.net/fckeditor/FCKeditor_2.2.zip
.net版
http://prdownloads.sourceforge.net/fckeditor/FCKeditor.Net_2.2.zip
所有版本列表
http://prdownloads.sourceforge.net/fckeditor