zoukankan      html  css  js  c++  java
  • FCKEditor使用

    参照http://blog.csdn.net/lzy_1515/archive/2010/03/22/5405250.aspx,学习了FCKEditor的初步使用。

    在页面中使用FCKEditor控件

         <FCKeditorV2:FCKeditor ID="content" runat="server" Height="600px">
         </FCKeditorV2:FCKeditor>

    代码访问,获取输入的内容:

      dr["content"]=content.Value

    把文件打包上传了,方便大家使用。

    下载dll文件FredCK.FCKeditorV2.rar

    下载fckeditor.rar

    有些情况下,会出现上传文件名为中文的文件时出现乱码现象,可以在FCKEditor的目录下新建Web.config文件,内容如下:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.web>
        <compilation defaultLanguage="c#" debug="true" />
        <authorization>
          <allow users="*" />
        </authorization>
        <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
        <customErrors mode="Off" />
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"    />
        <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode ="Never" />
        <xhtmlConformance mode="Legacy"/>
        <httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
      </system.web>
    </configuration>

  • 相关阅读:
    WPF基础篇之静态资源和动态资源
    15-Node-数据库
    15-Node
    12-Git
    总-S04-03 项目-大事件
    00-PHP难点
    08-PHP基础
    15-ES6
    16-Vue-webpack
    00-Web难点
  • 原文地址:https://www.cnblogs.com/zhouhb/p/2076135.html
Copyright © 2011-2022 走看看