fckconfig.js:
FCKConfig.ToolbarSets["User"] = [
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'], '/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-'] // No comma for the last row.
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-']
] ;
[default]未列出来哦
当然你可以添加自己的,就在后台添加就OK了
-------------------------------------
<asp:FCKeditor ID="FckEditor1" runat="server" ToolbarSet="Basic" Height="320px"></asp:FCKeditor>
这个比较简单,你可以修改其配置文件即可
FCK 自定义工具条
FCK默认工具栏目:
打开fckconfig.js
1. 自定义工具条按钮('-':分隔符 '/':换行)
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['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'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['About']
] ;
这里是默认的功能,根据自己实际情况修改一下
2. 改变工具条样式
FCK提供了三种样式(default,office2003,silver)
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/样式名/' ; -- 修改这一句就行
来自: http://www.cnblogs.com/zch5577/articles/1281486.html