zoukankan      html  css  js  c++  java
  • CuteEditor安装手记(转)

    转自:http://www.cnblogs.com/lwjacky/articles/951887.html

    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"就可以

  • 相关阅读:
    学习使人快乐9--eclipse常用快捷键总结
    5.20新一周
    Mybatis+Spring框架整合
    Mybatis3
    Mybatis2
    Mybatis1
    查找算法
    Spring3:spring的事务操作
    Spring2:
    Spring:
  • 原文地址:https://www.cnblogs.com/Godblessyou/p/1985076.html
Copyright © 2011-2022 走看看