IT码农库

您当前所在位置:首页 > 网络编程 > 网页编辑器

网页编辑器

比较不错的修改FCKEditor的修改方法

网络 2007-11-04网页编辑器4440
修改后的代码下载http://www.cnblogs.com/Files/Truly/FCKeditor_Truly.rar

修改后的代码下载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

大图广告(830*140)