CuteEditor 5.0的安装及属性设置

来源:互联网 发布:艾睿电子 知乎 编辑:程序博客网 时间:2024/05/06 06:09
            其他在线编辑器:FCKeditorWebHtmlEditor ,FTB,RichTextBox

CuteEditor 5.0
的安装
步骤:1、将CuteEditor文件夹下bin文件夹里的CuteEditor.dlCuteEditor.lic,CuteEditor.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)