Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)delv
published in(发表于) 2014/1/10 6:29:51
FCKEditor在Asp.net环境下的配置安装_[Asp.Net教程]

FCKEditor在Asp.net环境下的配置安装_[Asp.Net教程]

不知道大家留意到没有了:

  以前我一直用FreeTextBox(主要是从Community Server那里知道的)。但是发现它并不是想象中好用,主要是上传图片没有弄好。好了好了,言归正传,说说我们今天的主角,FCKEditor,怎么在Asp.net中部署吧。


  首先,他的网站下载吧。这里要注意,你要下载两个ZIP文件,一个是Core,即核心文件,里面是整个FCKEditor的核心。第二个是For .net的组件。为了描述方便,我将真实文件名附上,以后要自己灵活修改啊。


  下载的核心文件叫FCKeditor_2.3.1.zip


  For .net 的文件叫FCKeditor.Net_2.2.zip


  部署步骤:


  解压FCKeditor_2.3.1.zip,将里面的FCKEditor复制到你的IIS主目录里面,其实要的效果是能够这样访问到就可以了 http://localhost/Fckeditor/ ,将http://localhost/Fckeditor/fckconfig.js的变量:


  _FileBrowserLanguage,_QuickUploadLanguage 的值改为 aspx,不难做吧。


  (可选)将复制好的FCKEditor里的以 '_' 开头的文件及文件夹删除,当然如果你是在开发也可以不删除,里面都是示例及调试页面。


  解压缩FCKeditor.Net_2.2.zip,然后在VS.net 2003中添加新的控件那样添加,bin\Release\FredCK.FCKeditorV2.dll 这个文件,呵呵,以后你就可以随便拖放这个控件了。


  (重要)将上面的DLL文件复制到 http://localhost/FCKeditor/editor/filemanager/upload/aspx/bin/


  然后在IIS设置中让 http://localhost/FCKeditor/editor/filemanager/upload/aspx/ 这个目录可以运行Aspx。同样,http://localhost/FCKeditor/editor/filemanager/browser/default/connectors/aspx/ 也要重复上面的过程。


  另外一种更加简单的方法是将FredCK.FCKeditorV2.dll 复制 http://localhost/FCKeditor/bin/ 目录下,然后在IIS中创建应用程序。


  这一步的目的是让:


  http://localhost/FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx


  http://localhost/FCKeditor/editor/filemanager/upload/aspx/upload.aspx


  这两个文件能够工作。


  好了,到此为止,你在aspx也里面拖入FCKEditor,将BasePath 设置为 /FCKEditor/就可以用了。


  如果:


  http://localhost/FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx 工作不正常


  你在浏览服务器时,就会有XML Request Error:XXXXXXXXXXXXXX(500)错误。


  http://localhost/FCKeditor/editor/filemanager/upload/aspx/upload.aspx


  你在上传图片时,按钮怎么按都没有反应的。


来源:网络







If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759