在
fckeditor/fckconfig.js
裡面有一段
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','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
這是工具列的設定,工具列的代號是 ["Default"]
所以自己也可以設另一個代號的工具列,例如:
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
這是他原本設定的基本工具列 "Basic"],
'-' 是工具與工具之間的分隔線
[] 括起來的代表是同一組的工具
, 如果有很多組[],則用逗號做分隔
設定完如何應用到ASP.NET中呢?
在 ToolbarSet 的屬性中填入 Toolbar 的代號
例如:Basic 或是 Default
這樣工具列就會改成你設定的那一組了!