FCKeditor的开发精简
Deployment? 開發階段
Not all files are required by the editor to run, and you could reduce the number and size of the files to be published in a production environment by removing:?
在編輯器運行時,并不是所有的文件都是必須的,所以,你可以按照自己的需要通過移除下列文件來減小編輯器的體積(一般在和應用程序結合在一起發布的時候需要這么做):
??? ● All directories that start with one underscore (like _docs and _sample) including "editor/_source".? 所有的以下劃線開頭的目錄(像 _docs 和 _sample之類的目錄)包括 "editor/_source" 目錄。
??? ● Any skin you are not using from the "editor/skins" directory.? 在"editor/skins" 皮膚目錄中任何你不會用到的皮膚。
??? ● Any "smiley" collection you are not using from the "editor/images/smiley" directory. 在"editor/images/smiley" 目錄下的任何你不用的表情集都可以刪除(在 2.6.5 版本中默認就一個msn的表情集)。
??? ● Any plugin you don't need from the "editor/plugins" directory.? 還有"editor/plugins" 目錄下不需要的插件也可以刪了。
??? ● Any connector you don't need from the "editor/filemanager/connectors" directory. 在"editor/filemanager/connectors"目錄中有不同編程語言的連接器,所以你可以根據自己使用的語言,把不需要的連接器給刪了。
??? ● Any "fckeditor.ext" file you don't need from the root of the editor package (based on your server side language).
在編輯器安裝根目錄下所有你不需要的"fckeditor.ext" 文件都可以刪了(根據你使用的服務端語言),在根目錄下有很多這樣的文件,像 fckeditor.php ,fckeditor.py ,fckeditor.cfm ,fckeditor.asp 等等,一般PHP程序員就用 fckeditor.php 或 fckeditor.js 就可以了。
??? ● Any "<lang>.js" file you don't need from the "editor/lang" directory (only if AutoDetectLanguage = false).
還可以刪除"editor/lang"目錄下不用的語言腳本 "<lang>.js" 的文件(只有在AutoDetectLanguage 為false 才可以)。
At a minimum, there should be 4 files in the root FCKeditor folder: fckeditor.php (or other extensions), fckstyles.xml, fcktemplates.xml and fckconfig.js? 在精簡完編輯器的文件后,在FCKeditor的根目錄必須還有如下的四個文件 :fckeditor.php(或其他語言的擴展),fckstyles.xml ,fcktemplates.xml ,以及 fckconfig.js 文件,上面的每個文件,在以前的章節中都有詳細說明。
NOTE: Do not remove the file "fckconfig.js"; otherwise the editor will not work and JavaScript errors could be thrown.
注意:不要移除"fckconfig.js"文件,否則編輯器就不能正常工作了,并且會拋出 javascript 錯誤。
轉載于:https://www.cnblogs.com/yehu/archive/2010/09/04/1817781.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的FCKeditor的开发精简的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 遭遇破窗理论
- 下一篇: ScrollView’s handy t