fckeditor编辑器优化技巧 (网摘)

摘自 http://hi.baidu.com/caicaihui/blog/item/073672f0f99afda9a40f52a0.html

最新版本2.63的优化技巧

=== 删除文件

一 删除带_文件和文件夹
二 删除根目录下
fckeditor.afp|fckeditor.asp|fckeditor.cfc|fckeditor.cfm|fckeditor.lasso|fckeditor.php|fckeditor.pl|fckeditor.py|fckeditor_php4.

php|fckeditor_php5.php|fckutils.cfm|license.txt
三 删除editor"filemanager"connectors所有文件夹,只保留aspx

=== 支持上传,解决浏览的问题

四 修改editor"filemanager"connectors"aspx"config.ascx 第41行,修改为return true
五 修改fckconfig.js文件 第276,277行修改为aspx
六 修改editor"filemanager"connectors"aspx"config.ascx 第73,80,87,94行,修改为对应的上传目录

=== 优化配置

修改fckconfig.js文件
七 第171,174,177修改为true,去掉高级功能
八 第98行 修改FCKConfig.ToolbarSets["Default"]

FCKConfig.ToolbarSets["Default"] = [
['Source','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Checkbox','Radio','TextField','Textarea','Select','Button'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','SpecialChar','PageBreak'],
'/',
['Style','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks']   // No comma for the last row.
] ;

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

九 第173行 增加字体

FCKConfig.FontNames   = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;宋体;黑体;隶书' ;

十 FCKConfig.BackgroundBlockerOpacity = 0.00 ;

十一 FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

原文地址:https://www.cnblogs.com/lfzwenzhu/p/1298962.html