CKEditor for ASP.NET(2)——控制項整合指南

來源:互聯網
上載者:User

如果您想將CKEditor整合到您的ASP.NET頁面,按照下面的步驟進行操作:

  1. 到官方CKEditor
    download site並下載最新版本的CKEditor 3.xCKEditor for ASP.NET控制項。
  2. 將兩個安裝包解壓到指定位置。
  3. 在您的網站中添加CKEditor for ASP.NET控制項引用。
    在Visual Studio中使用 添加應用命令,從解壓的CKEditor for ASP.NET中瀏覽 bin\Release\CKEditor.NET.dll檔案。也可以將該DLL檔案手動放到您的應用中的 bin檔案夾。
  4. 從CKEditor 3.x安裝包中將解壓的檔案放到您的網站應用程式目錄中。
  5. 在您的頁面中註冊CKEditor for ASP.NET:
    <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
  6. 將一個CKEditor執行個體添加到頁面中:
    <CKEditor:CKEditorControl ID="CKEditor1" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
    (其中 BasePath指向CKEditor檔案夾)

帶有CKEditory的工程看起來可能像下面的樣子。當通過瀏覽器運行應用時,您可以使用編輯器的所有功能。

帶有CKEditor的Visual Studio工程樣本

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.