优点:配置简单,功能强大
            其他在线编辑器:FCKeditorWebHtmlEditor FTBRichTextBox

CuteEditor 5.0
的安装
步骤:1、将CuteEditor文件夹下bin文件夹里的CuteEditor.dllCuteEditor.licCuteEditor.ImageEditor.dll 5.0增加的EditorImage功能)拷到项目的bin目录下。如果需要拼写检查功能则还要拷NetSpell.SpellChecker.dll,并修改web.config文件,如下
<appSettings>
    <add key="DictionaryFolder" value="bin"/>
</appSettings>
“.dic为扩展名的文件是词典保存为纯文本文件的格式。将bin文件夹里的都拷到项目的bin目录下也可以)
2、将CuteEditor文件夹下CuteSoft_Client文件夹全部拷贝到应用程序的根目录下,并在项目根目录下建立一个uploads文件夹.
3、打开VS,在工具栏上点击右键-添加/移除项,在自定义工具箱中的.NET Framework组件,流览将  bin文件夹下的cuteEditor.dll文件引用,将Editor拖到页面即可

CuteEditor 5.0属性设置

1、插入数据库:Editor1.Text
2、文件夹设置: Imports System.IO(引入命名空间)
        Dim str As String = Session("UserName")   
        Dim path As String = "~/UploadFile/" + str + ""
        Dim fullPath As String
        fullPath = Server.MapPath("UploadFile\") + str
        **判断以UserName命名的文件夹是否存在,不存在则创建以UserName命名的文件夹
        If Not Directory.Exists(fullPath) Then
        Directory.CreateDirectory(fullPath)
        End If
        **将默认路径uploads改为“path”所表示的路径
        Editor1.SetSecurityGalleryPath(path)
3、按纽设置:* 属性----外观----AutoConfigure
             * 代码  Editor1.AutoConfigure = AutoConfigure.Simple
             * CuteEditor文件夹HowTo目录下的AddButton例子
4、上传文件大小设置(以flash为例):Dim kb As Int32 = 200
                     Editor1.SetSecurityMaxFlashSize(kb)

         更多配置查看帮助,看了才发现里面的英语并不难。很多事情真的要做了才知道。

另一篇文章
 1拷贝文件
 

(1)CuteEditorBin文件夹下的:

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来添加字体。

posted on 2007-06-04 09:11  E商.NET  阅读(212)  评论(0编辑  收藏  举报