fckeditor 修改记录- Yoshow - 博客园

文章推薦指數: 80 %
投票人數:10人

posted @ 2009-07-28 12:55 Yoshow 阅读(601) 评论(0) 编辑 收藏 举报. 刷新评论刷新页面返回顶部 ... Yann LeCun最新访谈:能量模型是通向自主人工智能系统的起点 首页 新闻 博问 专区 闪存 班级 我的博客 我的园子 账号设置 简洁模式... 退出登录 注册 登录 Yoshow'sWeblog ConcentrateonJavascript,C#,PHP,Ajax.Net,Web2.0! fckeditor修改记录 fckeditor修改记录fckeditor版本2.6.4.1日期:2009-07-271.中文设置/fckconfig.js文件62行FCKConfig.DefaultLanguage='en';改为FCKConfig.DefaultLanguage='zh-CN';/fckconfig.js文件62行FCKConfig.FontNames      ='Arial;ComicSansMS;CourierNew;Tahoma;TimesNewRoman;Verdana';改为FCKConfig.FontNames='宋体;黑体;隶书;楷体_GB2312;Arial;ComicSansMS;CourierNew;Tahoma;TimesNewRoman;Verdana';2.修改菜单/fckconfig.js文件101行FCKConfig.ToolbarSets["Default"]=[   ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],   ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],   ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],   ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],   '/',   ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],   ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],   ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],   ['Link','Unlink','Anchor'],   ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],   '/',   ['Style','FontFormat','FontName','FontSize'],   ['TextColor','BGColor'],   ['FitWindow','ShowBlocks','-','About']      //Nocommaforthelastrow.];改为FCKConfig.ToolbarSets["Default"]=[   ['Source','Preview','RemoveFormat','FitWindow','ShowBlocks'],   ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],   ['Undo','Redo','-','Find','Replace','-','SelectAll'],   ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','HiddenField','ImageButton'],   '/',   ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],   ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],   ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],   ['Link','Unlink','Anchor'],   ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],   '/',   ['Style','FontFormat','FontName','FontSize'],   ['TextColor','BGColor']];3.修改样式/fckconfig.js文件45行FCKConfig.SkinPath=FCKConfig.BasePath+'skins/default/';改为FCKConfig.SkinPath=FCKConfig.BasePath+'skins/silver-narrow/';4.修改表情/fckconfig.js文件313行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'];FCKConfig.SmileyColumns=8;FCKConfig.SmileyWindowWidth      =320;FCKConfig.SmileyWindowHeight   =210;改为FCKConfig.SmileyPath   =FCKConfig.BasePath+'images/smiley/qq/';FCKConfig.SmileyImages   = ['001.png','002.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','003.png','015.png','016.png']FCKConfig.SmileyColumns=8;FCKConfig.SmileyWindowWidth    =320;FCKConfig.SmileyWindowHeight   =180;5.集成CKFinder图片浏览器(*)我的CKFinder程序位置/editor/ckfinder//fckconfig.js文件275行var_FileBrowserLanguage   ='php';   //asp|aspx|cfm|lasso|perl|php|pyvar_QuickUploadLanguage   ='php';   //asp|aspx|cfm|lasso|perl|php|py//Don'tcareaboutthefollowingtwolines.Itjustcalculatesthecorrectconnector//extensiontouseforthedefaultFileBrowser(Perluses"cgi").var_FileBrowserExtension=_FileBrowserLanguage=='perl'?'cgi':_FileBrowserLanguage;var_QuickUploadExtension=_QuickUploadLanguage=='perl'?'cgi':_QuickUploadLanguage;FCKConfig.LinkBrowser=true;FCKConfig.LinkBrowserURL=FCKConfig.BasePath+'filemanager/browser/default/browser.html?Connector='+encodeURIComponent(FCKConfig.BasePath+'filemanager/connectors/'+_FileBrowserLanguage+'/connector.'+_FileBrowserExtension);FCKConfig.LinkBrowserWindowWidth   =FCKConfig.ScreenWidth*0.7;      //70%FCKConfig.LinkBrowserWindowHeight   =FCKConfig.ScreenHeight*0.7;   //70%FCKConfig.ImageBrowser=true;FCKConfig.ImageBrowserURL=FCKConfig.BasePath+'filemanager/browser/default/browser.html?Type=Image&Connector='+encodeURIComponent(FCKConfig.BasePath+'filemanager/connectors/'+_FileBrowserLanguage+'/connector.'+_FileBrowserExtension);FCKConfig.ImageBrowserWindowWidth =FCKConfig.ScreenWidth*0.7;   //70%;FCKConfig.ImageBrowserWindowHeight=FCKConfig.ScreenHeight*0.7;   //70%;FCKConfig.FlashBrowser=true;FCKConfig.FlashBrowserURL=FCKConfig.BasePath+'filemanager/browser/default/browser.html?Type=Flash&Connector='+encodeURIComponent(FCKConfig.BasePath+'filemanager/connectors/'+_FileBrowserLanguage+'/connector.'+_FileBrowserExtension);FCKConfig.FlashBrowserWindowWidth =FCKConfig.ScreenWidth*0.7;   //70%;FCKConfig.FlashBrowserWindowHeight=FCKConfig.ScreenHeight*0.7;   //70%;FCKConfig.LinkUpload=true;FCKConfig.LinkUploadURL=FCKConfig.BasePath+'filemanager/connectors/'+_QuickUploadLanguage+'/upload.'+_QuickUploadExtension;FCKConfig.LinkUploadAllowedExtensions   =".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$";         //emptyforallFCKConfig.LinkUploadDeniedExtensions   ="";   //emptyfornooneFCKConfig.ImageUpload=true;FCKConfig.ImageUploadURL=FCKConfig.BasePath+'filemanager/connectors/'+_QuickUploadLanguage+'/upload.'+_QuickUploadExtension+'?Type=Image';FCKConfig.ImageUploadAllowedExtensions   =".(jpg|gif|jpeg|png|bmp)$";      //emptyforallFCKConfig.ImageUploadDeniedExtensions   ="";                     //emptyfornooneFCKConfig.FlashUpload=true;FCKConfig.FlashUploadURL=FCKConfig.BasePath+'filemanager/connectors/'+_QuickUploadLanguage+'/upload.'+_QuickUploadExtension+'?Type=Flash';FCKConfig.FlashUploadAllowedExtensions   =".(swf|flv)$";      //emptyforallFCKConfig.FlashUploadDeniedExtensions   ="";               //emptyfornoone改为var_FileBrowserLanguage   ='aspx';   //asp|aspx|cfm|lasso|perl|php|pyvar_QuickUploadLanguage   ='aspx';   //asp|aspx|cfm|lasso|perl|php|py//Don'tcareaboutthefollowingtwolines.Itjustcalculatesthecorrectconnector//extensiontouseforthedefaultFileBrowser(Perluses"cgi").var_FileBrowserExtension=_FileBrowserLanguage=='perl'?'cgi':_FileBrowserLanguage;var_QuickUploadExtension=_QuickUploadLanguage=='perl'?'cgi':_QuickUploadLanguage;FCKConfig.LinkBrowser=true;FCKConfig.LinkBrowserURL=FCKConfig.BasePath+'ckfinder/ckfinder.html';FCKConfig.LinkBrowserWindowWidth   =FCKConfig.ScreenWidth*0.7;   //70%FCKConfig.LinkBrowserWindowHeight   =FCKConfig.ScreenHeight*0.7;   //70%FCKConfig.ImageBrowser=true;FCKConfig.ImageBrowserURL=FCKConfig.BasePath+'ckfinder/ckfinder.html?type=Images';FCKConfig.ImageBrowserWindowWidth =FCKConfig.ScreenWidth*0.7;   //70%;FCKConfig.ImageBrowserWindowHeight=FCKConfig.ScreenHeight*0.7;   //70%;FCKConfig.FlashBrowser=true;FCKConfig.FlashBrowserURL=FCKConfig.BasePath+'ckfinder/ckfinder.html?type=Flash';FCKConfig.FlashBrowserWindowWidth =FCKConfig.ScreenWidth*0.7;   //70%;FCKConfig.FlashBrowserWindowHeight=FCKConfig.ScreenHeight*0.7;   //70%;FCKConfig.LinkUpload=true;FCKConfig.LinkUploadURL=FCKConfig.BasePath+'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';FCKConfig.LinkUploadAllowedExtensions   =".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$";         //emptyforallFCKConfig.LinkUploadDeniedExtensions   ="";   //emptyfornooneFCKConfig.ImageUpload=true;FCKConfig.ImageUploadURL=FCKConfig.BasePath+'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';FCKConfig.ImageUploadAllowedExtensions   =".(jpg|gif|jpeg|png|bmp)$";      //emptyforallFCKConfig.ImageUploadDeniedExtensions   ="";                     //emptyfornooneFCKConfig.FlashUpload=true;FCKConfig.FlashUploadURL=FCKConfig.BasePath+'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';FCKConfig.FlashUploadAllowedExtensions   =".(swf|flv)$";      //emptyforallFCKConfig.FlashUploadDeniedExtensions   ="";               //emptyfornoone6.自定义插件插件制作可以参考地址http://www.cnblogs.com/goody9807/archive/2008/05/14/1197100.html -*-此文章为本人发呆时ctrl+c,ctrl+v的结果.如果损害到您的利益,可以联系我QQ:248078462-*- posted@ 2009-07-2812:55  Yoshow  阅读(601)  评论(0)  编辑  收藏  举报 刷新评论刷新页面返回顶部 Copyright©2022Yoshow Poweredby.NET6onKubernetes



請為這篇文章評分?