日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

FCKeditor的开发精简

發布時間:2024/4/17 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的开发精简的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。