惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
C
Check Point Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
SecWiki News
SecWiki News
有赞技术团队
有赞技术团队
Latest news
Latest news
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
Project Zero
Project Zero
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
腾讯CDC
P
Proofpoint News Feed
L
LINUX DO - 热门话题
C
Cisco Blogs
P
Palo Alto Networks Blog
Vercel News
Vercel News
P
Privacy International News Feed
爱范儿
爱范儿
Scott Helme
Scott Helme
L
Lohrmann on Cybersecurity
MyScale Blog
MyScale Blog
K
Kaspersky official blog
B
Blog RSS Feed
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
O
OpenAI News
博客园 - 叶小钗
量子位
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
J
Java Code Geeks
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LINUX DO - 最新话题
F
Fortinet All Blogs
N
News | PayPal Newsroom
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 【当耐特】
N
News and Events Feed by Topic
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI

博客园 - 人非生而知知者

帐号实名制及其方式-修订版1.0 以SNS的模式做企业管理应用 苹果CEO史蒂夫·乔布斯(Steve Jobs),2005年,斯坦福大学 赢在中国 - 史玉柱经典语录(转载) 方案销售是一种新的销售模式---售前工程师 Palm 680磨合使用 软件需求分析工程中的几个常见事 palm 680入手使用记录 TOC全景图 TOC Ubuntu9.04 配置Eclipse 中C语言编译环境及GTK+ ubuntu 街机模拟器 学习使用VIM 目标——简单而有效的常识管理 用例图之用例与生、见、变、灭 业务建模-用例 coffeewoo 出自itpub BB8700 bowser net 系统分析-系统设计-需求分析的区别 揭秘jbpm流程引擎内核设计思想及构架 (转)
如何在ASP项目中使用Fckeditor2.6.4
人非生而知知者 · 2009-05-31 · via 博客园 - 人非生而知知者

大家在使用中Fck中肯定会遇到不问题,同样都从网上找到解决方法,我也一样。我也来说说的寻找与解决。

另,我搜索到的文章不少,但基本上都与http://www.ie521.com/blog/article.asp?id=437 FCKeditor 2.6 安装配置使用指南(asp) 相同。但可以发现不少问题---本篇不是一个挑错的文章,所以不细谈。

另外又参照了Fckeditor软件包的demo。

一,下载,从官网http://www.fckeditor.net/上下载最新的正式版吧,现在是2.6.4版,3.0版是测试版。

二、安装文件:在网站根目录下建立FCKeditor这样一个文件夹,然后把下载下来的文件包释放到该文件夹中(一般在网站的根目录中,使用“解压到当前目录”就可以搞定了,她的压缩包就是直接以FCKeditor目录压缩的)。

三、删除不必要的文件(现在是以ASP以例):

  • 在FCKeditor目录中仅保留editor、fckeditor.asp、fckconfig.js、fckeditor.js、fckpackager.xml、fckstyles.xml、fcktemplates.xml文件,其余的都删除。
  • 删除语言包editor\lang中除中文(zh-cn.js、zh.js)和英文(en.js)以外的语言。
  • 删除editor\skins目录下除默认皮肤(default)以外的文件夹 。其实我更喜欢使用silver样式。要注意喜欢那一个就留下那个,其他的删除掉,并且记得在fckconfig.js修改皮肤的路径。
  • 删除editor\filemanager\connectors目录下除asp以外的文件 
  • 删除editor目录下_source目录(这是源相关的源文件目录,不需要) 

四、在ASP源程序中引用FCKeditor编辑器

  1. 首先在asp页面顶端插入服务器端包含语句:<!--#include file="FCKeditor/fckeditor.asp" –>。注意在GB2312编码的页面最上部一定要有<%@ codepage=936%>,这是因为fckeditor的文件编码是UTF-8的,不加入会发生乱码。
  2. 然后在表单里面添加以下代码:
  3. Dim oFCKeditor' 定义变量
    Set oFCKeditor = New FCKeditor' 类的初始化
    oFCKeditor.BasePath    = "/fckeditor/"' 定义路径(这是根路径:/FCKeditor/)
    oFCKeditor.ToolbarSet="Basic"' 定义工具条(默认为:Default)
    oFCKeditor.Width="100%" ' 定义宽度(默认宽度:100%)
    oFCKeditor.Height=350 ' 定义高度(默认高度:200)
    oFCKeditor.Value="这是示例文本。" '输入框的初始值
    oFCKeditor.Create "FCKeditor1" '在表单里面创建了一个隐藏的名称为FCKeditor1的输入框
  4. 使用request.Form("FCKeditor1"),就可以读取FCKeditor1的输入框的值。

五、对于fckconfig.js的配置请见相关的资料吧,网上有很多。

六、对于上传的设置,也请见网上的相关资料