PHP中的FCKEditor工具栏配置

时间:2011-08-08 12:08:19

标签: php fckeditor

我正在使用我正在使用FCKEditor的应用程序,但我需要修改工具栏选项。我搜索了这个,得到了我需要更改工具栏JS文件中定义的数组的答案。但是我没有在插件目录中找到工具栏插件。

1 个答案:

答案 0 :(得分:1)

与PHP无关 查看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'],
['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.
] ;

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

修改
请阅读:http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar