控制項名稱:Cute Editor for .NET v6.4
官方網站:http://cutesoft.net/
官方下載:http://cutesoft.net/Downloads/
最新動向日期:2009年8月23日(星期三)
說明:.NET平台最強大的所見即所得 (WYSIWYG)HTML編輯器(The most powerful WYSIWYG browser-based Online HTML Editor for ASP.NET)部落格園也有用到此編輯器(好像已經是新版本了)。國內見得最多的版本目前是v6.0。新版本6.4不僅繼承原有功能,而且增加了很多實用功能,並且很好的支援IE6,IE7,IE8,和Firefox3.5 等主流瀏覽器,依然提供.NET FrameWork 1.1和2.0兩種版本(即涵蓋1.1——3.5所有版本),並且國際化做得比以前的版本更完善(提供約30種不同語言)。
部署步驟(基本不變,.NET1.1和2.0版本部署基本一致):
1. 安裝CuteEditor assembly 檔案和license檔案(共4個)
拷貝以下檔案到您網站的bin檔案夾下
CuteEditor.dll
CuteEditor.ImageEditor.dll
NetSpell.SpellChecker.dll
CuteEditor.lic (license檔案)
2.拷貝CuteEditor 用戶端檔案
拷貝“CuteSoft_Client”檔案夾到您的網站目錄下(根目錄),大約有4.57MB(.NET 2.0版本)。
3.增加httpModule 到您的web.config中
(1)IIS 5.0, 6.0 和 IIS 7.0 標準模式(Classic mode)
<configuration>
<system.web>
<httpModules>
<add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
</httpModules>
</system.web>
</configuration>
(2)IIS 7.0整合模式(Integrated mode)
<configuration>
<system.webServer>
<modules>
<add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
</modules>
</system.webServer>
</configuration>
4.添加 CuteEditor 到您的頁面(為了方便,先將CuteEditor.dll添加到您的VS工具列中)
拖動工具列中的CuteEditor控制項至您的頁面,CuteEditor會自動註冊到您的頁面。
如下:
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<CE:Editor id="Editor1" runat="server" />
5.取值方法
string strContent = this.Editor1.Text;
6.: