CuteEditor安裝使用手記

來源:互聯網
上載者:User
1、拷貝檔案

(1)將CuteEditor、Bin檔案夾下的:

CuteEditor.dll

CuteEditor.lic(解密檔案)

CuteEditor.ImageEditor.dll (5.0增加的EditorImage功能)

NetSpell.SpellChecker.dll(拼字檢查功能)

拷貝到項目的Bin目錄下。

註:(“.dic”為副檔名的檔案是詞典儲存為純文字檔案的格式。將bin檔案夾裡的都拷到項目的bin目錄下也可以)

(2)將CuteSoft_Client檔案夾及檔案拷貝到項目的相應目錄。

注:FilesPath用來設定所對就的目錄,如:

FilesPath="~/admin/CuteSoft_Client/CuteEditor/"

(3)把example.css檔案拷貝到相應目錄,並設定EditorWysiwygModeCss屬性。如:EditorWysiwygModeCss="/admin/CuteSoft_Client/CuteEditor/themes/example.css

綜合設定如下:

<CE:Editor ID="Editor1" runat="server" FilesPath="~/admin/CuteSoft_Client/CuteEditor/" 
EditorWysiwygModeCss="/admin/CuteSoft_Client/CuteEditor/themes/example.css"></CE:Editor> 

2、修改Web.config檔案

  <appSettings>

     <add key="DictionaryFolder" value="bin" />

  </appSettings>

  <system.web>//注本節代碼在.net2.0下是否需要設定,本人未驗證。

     <browserCaps>

       tagwriter=System.Web.UI.HtmlTextWriter

     </browserCaps>

  </system.web>

3、引用:

·<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>

·<CE:Editor ID="ce1" runat="server" FilesPath="~/admin/CuteSoft_Client/CuteEditor/" 
EditorWysiwygModeCss="~/Admin/CuteSoft_Client/CuteEditor/Themes/example.css" ThemeType="Office2003_BlueTheme" >

</CE:Editor>

註:

可修改CuteSoft_Client\CuteEditor\Configuration\AutoConfigure檔案夾下的檔案,改便CuteEditor工具列按鈕的顯示或排列。

可修改檔案CuteSoft_Client\CuteEditor\Configuration\Shared\Common.config來添加字型。

發現無效字元的問題,只需在web.config中將編碼改為"utf-8"就可以

聯繫我們

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