知识库
Web开发技术
FCKeditor 2.6.2配置修改说明
=========================================================================
一、精简FCKeditor目录,目录里只留下以下3个文件1个文件夹
fckconfig.js
fckstyles.xml
fcktemplates.xml
[editor]
注意:
将fckeditor.asp移出Fckeditor的目录,安全性高些,调用
fckeditor.js这个文件经测试不需要,因为我们用ASP,这个网上一般都说是保留,实际上如果你不用js调用的话它是多余的,删除也是安全性原因
精简Fckeditor
1、删除FCKeditor文件夹里所有以"_下划线"开头的文件和文件夹
2、删除FCKeditor\editor\filemanager\connectors\文件夹里除asp文件夹外的其它语言都删除。
====================================================================
二、修改FCKeditor\fckconfig.js文件
1、将以下几个参数,全部改为false,主要为了安全考虑
FCKConfig.LinkBrowser = true ;
FCKConfig.ImageBrowser = true ;
FCKConfig.FlashBrowser = true ;
FCKConfig.LinkUpload = true ;
FCKConfig.ImageUpload = true ;
FCKConfig.FlashUpload = true ;
然后用如下方法调用,可打开上传设置:
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
With oFCKeditor
.BasePath = sBasePath & "FCKeditor/"
.Config("LinkBrowser") = "true"
.Config("ImageBrowser") = "true"
.Config("FlashBrowser") = "true"
.Config("LinkUpload") = "true"
.Config("ImageUpload") = "true"
.Config("FlashUpload") = "true"
.Value = content
.Height = 350
.Create "Content"
End With
%>
2、修改上传所用语言,默认是PHP
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
3、其它修改:
FCKConfig.ToolbarComboPreviewCSS = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
FCKConfig.DefaultLanguage = 'zh-cn' ;
FCKConfig.TabSpaces = 1 ;
去掉表情菜单smiley或将表情文件夹images\smiley移出fck目录,防止暴露fck的后台地址
FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; '表情文件夹地址
FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;
==========================================================================