FCKEditor在Asp.net的安裝

來源:互聯網
上載者:User

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

  1. FreeTextbox 不開源了,雖然我還有它以前的開源版本。
  2. CSDN用的這個線上編輯器很優秀。
  3. 它的名字叫做FCKEditor
  4. 它是開源的
  5. 平台無關。最起碼能支援 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

部署步驟:

  1. 解壓FCKeditor_2.3.1.zip,將裡面的FCKEditor複製到你的IIS主目錄裡面,其實要的效果是能夠這樣
    訪問到就可以了 http://localhost/Fckeditor/   ,將http://localhost/Fckeditor/fckconfig.js的變數:
    _FileBrowserLanguage,_QuickUploadLanguage 的值改為 aspx,
    呵呵,不難做吧。
  2. (可選)將複製好的FCKEditor裡的以 '_' 開頭的檔案及檔案夾刪除,當然如果你是在開發也可以不
    刪除,裡面都是樣本及調試頁面。
  3. 解壓縮FCKeditor.Net_2.2.zip,然後在VS.net 2003中添加新的控制項那樣添加,bin/Release/FredCK.FCKeditorV2.dll 這個檔案,呵呵,以後你就可以隨便拖放這個控制項了。
  4. (重要)將上面的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 
    這兩個檔案能夠工作。
  5. 好了,到此為止,你在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 
你在上傳圖片時,按鈕怎麼按都沒有反應的

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.