
很多用不到,也太占页面。
想编辑一下,去了一些没有用的,然后按自己习惯更换一个位置。当然是可以的
在FCKeditor目录下,找到fckconfig.js文件,打开它,打到FCKConfig.ToolbarSets["Default"]
下面就是FCK编辑器工具栏上的按钮;
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'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
] ;
在修改之前,记得备份,当然,你可以把原来的注释掉,重新写一段。注意语法就行了。
"/"是换行,"-"是竖线,[]为一个显示块区。
我的修改结果
FCKConfig.ToolbarSets["Default"] = [
//['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['FitWindow','Source'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
//['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
//'/',
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
['TextColor','BGColor'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor']
//'/',
//['FontFormat','FontName','FontSize'],
] ;
效果如下