http://www.cnblogs.com/esshs/archive/2008/12/03/1346326.html

FCKeditor下载路径:

http://sourceforge.net/projects/fckeditor/files/FCKeditor/2.6.6/FCKeditor_2.6.6.zip/download?use_mirror=nchc

<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = "/FCKeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>

使用方法:参考

http://www.oklinux.cn/html/developer/php/jq/20070526/26849.html

http://blog.imwebs.com/article.asp?id=322

http://sourceforge.net/projects/fckeditor/files/FCKeditor.Net/ 下载FCKeditor_2.6.7zip

在ASP.net mvc开发中使用纯html如何创建FCKeditor编辑器控件 步骤:

1.在官网下载 FCKeditor_2.6.6.zip

2.解压缩后添加现有项目到webSite目录下

3.使用JavaScript创建

<script type="text/javascript" src="/Scripts/FCKeditor_2.6.6/fckeditor/fckeditor.js">if (typeof (FCKeditorAPI) == 'undefined') {var FCKeditor = new FCKeditor("KnowBaseContent");        } else {FCKeditor.ReplaceTextarea();}FCKeditor.ToolbarSet = "Basic";FCKeditor.Height = 400;FCKeditor.ReplaceTextarea();
</script>

4. 进入FCKeditor文件夹,编辑 fckconfig.js 文件
修改
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
改为
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php

修改

FCKeditor.BasePath = '/fckeditor/' ;

改为

FCKeditor.BasePath = '/Scripts/FCKeditor_2.6.7/fckeditor/';

修改

FCKConfig.ToolbarSets["Basic"] = [
 ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

改为

FCKConfig.ToolbarSets["Basic"] = [
 ['Bold', 'Italic', '-', 'OrderedList', 'UnorderedList', '-', 'Link', 'Unlink', '-', 'About'],
 ['Image', 'Table', 'Smiley', 'SpecialChar', 'PageBreak']//'Rule',
]; ------工具栏的

5.http://sourceforge.net/projects/fckeditor/files/FCKeditor.Net/ 下载FCKeditor_2.6.7zip

解压后把FCKeditor.Net_2.6.7\bin\Release\2.0目录下的FredCK.FCKeditorV2.dll添加引用到webSite中

6.config.ascx中的CheckAuthentication()方法返回true

7.在fckconfig.js中修改此变量给工具栏瘦身

FCKConfig.ToolbarSets["Basic"] = [
 ['Bold', 'Italic', '-', 'OrderedList', 'UnorderedList', '-', 'Link', 'Unlink', '-', 'About'],
 ['Image', 'Flash', 'Table', 'Rule', 'Smiley', 'SpecialChar', 'PageBreak']
] ;

链接地址:http://files.cnblogs.com/wuhuisheng/FCKeditor.zip 包括所需dll包

IE9下不支持FCKeditor

fckeditor/editor/js/fckeditorcode_ie.js

找到第38行的这个方法:FCKTools.RegisterDollarFunction 
将原来的
FCKTools.RegisterDollarFunction=function(A){A.$=A.document.getElementById;};
修改方法为:
FCKTools.RegisterDollarFunction=function(A){A.$=function(v){return A.document.getElementById(v);}};

另外如果你的系统是xp,暂时IE9还是不能够用在xp系统上的,微软开发这个为了在win7上面使用的

ASP.net mvc开发中使用纯html如何创建FCKeditor编辑器的使用相关推荐

  1. ASP.NET MVC开发中常见异常及解决方案

    NHibernate:no persister for 异常 1.配置文件后缀名写错 mapping file 必须是.hbm.xml结尾 2.Web.config配置里面引用实体 <sessi ...

  2. 在ASP.NET MVC应用中开发插件框架(中英对照)

    [原文] Developing a plugin framework in ASP.NET MVC with medium trust [译文] 在ASP.NET MVC应用中开发一个插件框架 I'v ...

  3. 关于ASP.NET MVC开发设计中出现的问题与解决方案汇总 【持续更新】

    关于ASP.NET MVC开发设计中出现的问题与解决方案汇总 [持续更新] 参考文章: (1)关于ASP.NET MVC开发设计中出现的问题与解决方案汇总 [持续更新] (2)https://www. ...

  4. 【初学者指南】在ASP.NET MVC 5中创建GridView

    介绍 在这篇文章中,我们将会学习如何在 ASP.NET MVC 中创建一个 gridview,就像 ASP.NET Web 表单中的 gridview 一样.服务器端和客户端有许多可用的第三方库,这些 ...

  5. ASP.Net MVC开发基础学习笔记(5):区域、模板页与WebAPI初步

    http://blog.jobbole.com/85008/ ASP.Net MVC开发基础学习笔记(5):区域.模板页与WebAPI初步 2015/03/17 · IT技术 · .Net, Asp. ...

  6. 学习笔记 --- 工厂、单体、适配器、策略、观察者、MVC设计模式及ASP.NET MVC开发模式、关闭缓存的方法...

    关于工厂.单体.适配器.策略.观察者没啥好说的, 代码中有说明 //DesignPattern.cs View Code using System; using System.Collections. ...

  7. 关于ASP.NET MVC P5中CheckBox的HtmlHelper方法的bug。

    在ASP.NET MVC P5中,当你使用这样的方法输出CheckBox:<%=Html.CheckBox("checkTest")%>,在浏览器上除了你期望看到的代码 ...

  8. 使用Donut Caching和Donut Hole Caching在ASP.NET MVC应用中缓存页面

    使用Donut Caching和Donut Hole Caching在ASP.NET MVC应用中缓存页面 使用Donut Caching和Donut Hole Caching在ASP.NET MVC ...

  9. 在ASP.NET MVC 模型中 选择最好的方法将多个model(数据模型)传递到视图

    在ASP.NET MVC 模型中 选择最好的方法将多个model(数据模型)传递到视图 前提介绍 这个文章我们要讨论,在ASP.NET MVC模型的项目中,怎么选择一个最有效的方式来将多个数据模型(m ...

最新文章

  1. Linux I2C工具查看配置I2C设备【转】
  2. 摇橹船以“硬科技+人工智能”助推高质量发展
  3. windows server 2016 安装指南
  4. java猜数字游戏界面_用java来写一个猜数字游戏,要用到界面
  5. C#开发笔记之07-如何实现交换2个变量的值而不引入中间变量?
  6. jvm垃圾回收之JVM GC算法
  7. 【恋上数据结构】串匹配算法(蛮力匹配、KMP【重点】、Boyer-Moore、Karp-Rabin、Sunday)
  8. 由35国42家电力输送系统运营商组成的欧洲电力协会网络遭攻击
  9. insertBefore方法(javascript与jQuery)
  10. 17 行为型模式-----迭代器模式
  11. Atitit java读取堵塞cmd命令行返回结果 java read maven 主要原理是另外线程读取标准流,错误流。。 回显增加out头,这样发布区分errstream和stdstream的
  12. 思迅账套数据库软件修复,思迅软件数据库置疑
  13. wsdl2java 生成不带JAXBElement的客户端
  14. 安装包时后面的参数以及简写
  15. 【Vue使用高德API制作热力图】
  16. Typora安装教程
  17. linux退出热键_linux用户退出登录的命令介绍
  18. 面试AI算法岗,你被要求复现顶会论文了嘛?
  19. photoshop第十五章:制作商业卡片场景效果
  20. Appium学习笔记17-手机操作API之分辨率

热门文章

  1. 产品经理第七章:互联网产品团队
  2. KindEditor富文本编辑器, 从客户端中检测到有潜在危险的 Request.Form 值
  3. vsftpd配置文件详细介绍
  4. 向页面中添加音乐或flash
  5. pyhon取文件md5值
  6. 用Java调用jdbc接口连接MySQL数据库——实现对数据库的增删改查
  7. emq认证mysql后如何使用_emq服务器开启mysql验证教程
  8. java使用集合存储过程_详解java调用存储过程并封装成map
  9. 工业机器人电路图讲解话术_燃气传感器技术在防爆喷涂机器人中的应用
  10. cordova环境部署