zoukankan      html  css  js  c++  java
  • 【转】CuteEditor 5.0 用法

    CuteEditor编辑器应用设置
    工具条设置文件
    \CuteSoft_Client\CuteEditor\Configuration\AutoConfigure
    上传设置文件
    \CuteSoft_Client\CuteEditor\Configuration\Security
    CuteEditor   如何修改默认   ~/Uploads   上传目录路径2007年03月19日   星期一   14:31修改文件CuteSoft_Client\CuteEditor\Configuration\Security \Default.config下
    找到下面这行:
    <security   name= "ImageGalleryPath "> ~/uploads </security>
    修改即可。

    CuteEditor   5.0的安装
    步骤:1、将CuteEditor文件夹下bin文件夹里的 CuteEditor.dl,CuteEditor.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   (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、将CuteEditor文件夹下bin文件夹里的 CuteEditor.dl,CuteEditor.lic,CuteEditor.ImageEditor.dll   (5.0增加的EditorImage功能)拷到项目的bin目录下。如果需要拼写检查功能则还要拷 NetSpell.SpellChecker.dll,并修改web.config文件,如下

           

    (“.dic”为扩展名的文件是词典保存为纯文本文件的格式。将bin文件夹里的都拷到项目的bin目录下也可以)

    2、将CuteEditor文件夹下CuteSoft_Client文件夹全部拷贝到应用程序的根目录下,并在项目根目录下建立一个uploads文件夹.

    3、打开VS,在工具栏上点击右键-添加/移除项,在自定义工具箱中的.NET   Framework组件,流览将     bin文件夹下的cuteEditor.dll文件引用,将Editor拖到页面即可


    CuteEditor   5.0属性设置
    1、插入数据库:Editor1.Text
    2、文件夹设置:
    ------------C#.NET版本--------------------
                    using   System.IO;(引入命名空间)
                    string   str   =   Session( "UserName ");  
                    string   path   =   "~/UploadFile/ "   +   str   +   " ";
                    string   fullPath   =   Server.MapPath( "UploadFile\ ")   +   str;
                    //判断以UserName命名的文件夹是否存在,不存在则创建以UserName命名的文件夹
                    if(!Directory.Exists(fullPath))
                    {
                            Directory.CreateDirectory(fullPath);
                    }
                    //将默认路径uploads改为“path”所表示的路径
                    Editor1.SetSecurityGalleryPath(path);

    ------------VB.NET版本--------------------
                    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例子

  • 相关阅读:
    性能测试指标
    性能优化——存储性能优化
    装背包 --- 深度优先搜索时间复杂度 ... 线性搜索
    深度优先搜索之偏爱时间复杂度
    Oh,mygoddess
    优先队列 + 并查集 + 字典树 + 欧拉回路 + 树状数组 + 线段树 + 线段树点更新 + KMP +AC自动机 + 扫描线
    Nightmare --- 炸弹时间复位
    3Ddungeon-------三维搜索-----偷个懒 把 亡命逃窜 的代码修改了一下 拿来用了
    迷宫寻宝(一) ---- 状态压缩
    NYOJ999 师傅又被妖怪抓走了
  • 原文地址:https://www.cnblogs.com/niuniu502/p/1242737.html
Copyright © 2011-2022 走看看