不知道大家留意到?jīng)]有了:
以前我一直用freetextbox(主要是從community server那里知道的)。但是發(fā)現(xiàn)它并不是想象中好用,主要是上傳圖片沒有弄好。好了好了,言歸正傳,說說我們今天的主角,fckeditor,怎么在asp.net中部署吧。
首先,他的網(wǎng)站下載吧。這里要注意,你要下載兩個zip文件,一個是core,即核心文件,里面是整個fckeditor的核心。第二個是for .net的組件。為了描述方便,我將真實(shí)文件名附上,以后要自己靈活修改啊。
下載的核心文件叫fckeditor_2.3.1.zip
for .net 的文件叫fckeditor.net_2.2.zip
部署步驟:
解壓fckeditor_2.3.1.zip,將里面的fckeditor復(fù)制到你的iis主目錄里面,其實(shí)要的效果是能夠這樣訪問到就可以了 http://localhost/fckeditor/ ,將http://localhost/fckeditor/fckconfig.js的變量:
_filebrowserlanguage,_quickuploadlanguage 的值改為 aspx,不難做吧。
(可選)將復(fù)制好的fckeditor里的以 '_' 開頭的文件及文件夾刪除,當(dāng)然如果你是在開發(fā)也可以不刪除,里面都是示例及調(diào)試頁面。
解壓縮fckeditor.net_2.2.zip,然后在vs.net 2003中添加新的控件那樣添加,bin/release/fredck.fckeditorv2.dll 這個文件,呵呵,以后你就可以隨便拖放這個控件了。
(重要)將上面的dll文件復(fù)制到 http://localhost/fckeditor/editor/filemanager/upload/aspx/bin/
然后在iis設(shè)置中讓 http://localhost/fckeditor/editor/filemanager/upload/aspx/ 這個目錄可以運(yùn)行aspx。同樣,http://localhost/fckeditor/editor/filemanager/browser/default/connectors/aspx/ 也要重復(fù)上面的過程。
另外一種更加簡單的方法是將fredck.fckeditorv2.dll 復(fù)制 http://localhost/fckeditor/bin/ 目錄下,然后在iis中創(chuàng)建應(yīng)用程序。
這一步的目的是讓:
http://localhost/fckeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx
http://localhost/fckeditor/editor/filemanager/upload/aspx/upload.aspx
這兩個文件能夠工作。
好了,到此為止,你在aspx也里面拖入fckeditor,將basepath 設(shè)置為 /fckeditor/就可以用了。
如果:
http://localhost/fckeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx 工作不正常
你在瀏覽服務(wù)器時,就會有xml request error:xxxxxxxxxxxxxx(500)錯誤。
http://localhost/fckeditor/editor/filemanager/upload/aspx/upload.aspx
你在上傳圖片時,按鈕怎么按都沒有反應(yīng)的。
新聞熱點(diǎn)
疑難解答
圖片精選