不知道大家留意到沒有了:
FreeTextbox 不開源了,雖然我還有它以前的開源版本。
CSDN用的這個在線編輯器很優秀。
它的名字叫做FCKEditor
它是開源的
平臺無關。最起碼能支持 asp, asp.net , php 。
呵呵,以前我一直用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
你在上傳圖片時,按鈕怎么按都沒有反應的
http://www.49028c.com/killkill/archive/2006/09/21/510293.html
新聞熱點
疑難解答