//有可能是版本問題,下面有些不使用時,去彈出js的警告對話框說工具不存在!
默認的Default包含了FCKeditor的全部功能,個人感覺有些功能用不上,完全加載還會影響顯示速度,所以我簡化了一下,只加載了一些常用的功能:
1、打開FCKeditor\fck_config.js文件,添加如下代碼
功能名稱 |
含義 |
功能名稱 |
含義 |
EditSource |
顯示HTML源代碼 |
StrikeThrough |
刪除線 |
Save |
保存 |
Subscrīpt |
下標 |
NewPage |
新建空白頁面 |
Superscrīpt |
上標 |
Preview |
預覽 |
JustifyLeft |
左對齊 |
Cut |
剪切 |
JustifyCenter |
居中對齊 |
Copy |
複製 |
JustifyRight |
右對齊 |
Paste |
粘貼 |
JustifyFull |
兩端對齊 |
PasteText |
純文本粘貼 |
InsertOrderedList |
自動編號 |
PasteWord |
來自Word的粘貼 |
InsertUnorderedList |
項目符號 |
|
打印 |
Outdent |
減少縮進 |
SpellCheck |
拼寫檢查 |
Indent |
增加縮進 |
Find |
查找 |
ShowTableBorders |
顯示錶格線 |
Replace |
替換 |
ShowDetails |
顯示明細 |
Undo |
撤銷 |
Form |
添加Form動作 |
Redo |
還原 |
Checkbox |
複選框 |
SelectAll |
全選 |
Radio |
單選按鈕 |
RemoveFormat |
去除格式 |
Input |
單行文本框 |
Link |
插入/編輯 鏈接 |
Textarea |
滾動文本框 |
RemoveLink |
去除連接 |
Select |
下拉菜單 |
Anchor |
錨點 |
Button |
按鈕 |
Image |
插入/編輯 圖片 |
ImageButton |
圖片按鈕 |
Table |
插入/編輯 表格 |
Hidden |
隱藏 |
Rule |
插入水平線 |
Zoom |
顯示比例 |
SpecialChar |
插入特殊字符 |
FontStyleAdv |
系統字體 |
UniversalKey |
軟鍵盤 |
FontStyle |
字體樣式 |
Smiley |
插入表情符號 |
FontFormat |
字體格式 |
About |
關於 |
Font |
字體 |
Bold |
粗體 |
FontSize |
字體大小 |
Italic |
斜體 |
TextColor |
文字顏色 |
Underline |
下劃線 |
BGColor |
背景色 |
config.ToolbarSets["www"]= [
['EditSource','Save','NewPage','Preview','-','Cut','Copy','Paste','PasteText','-','Find','Replace','-','Undo','Redo','-','SelectAll','-','Link','RemoveLink','-','Image','Table','Rule','SpecialChar','Smiley'],
['Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','JustifyRight','-','InsertOrderedList','InsertUnorderedList','-','Form','Checkbox','Radio','Input','Textarea','Select','Button','-','FontStyleAdv','TextColor']] ;
這樣加載的速度就快多了。
使用時只需把$oFCKeditor->ToolbarSet ='Default'
改爲$oFCKeditor->ToolbarSet = 'www' 即可
最後.把FCKeditor目錄下所有以下劃線“_”開頭的目錄都刪掉以節省空間,如_test._samples,等等.
也可以直接在FCK文件中找到fckconfig.js文件 裏面有FCKConfig.ToolbarSets["Default"]=
和FCKConfig.ToolbarSets["Basic"]= 這一個是默認一個是基礎的 這樣可以到 fckeditor.js中 把this.ToolbarSet = toolbarSet ||'Default' ; 改下就行了
ps: 有些是網上查的