去掉FCKeditor编辑器多余的按钮

后台是使用FCKeditor编辑器的,但是想到有那么多的按钮,有些完全用不到的.看着我的可怜的17寸显示器下,错位了,就想到屏蔽掉多于的按钮.就不会错位啦.好,动工~~~

FCKeditor编辑器的配置,有一个js来完成的.见编辑器根目录下的fckconfig.js,旧版的编辑器存在某些漏洞,前段时间就是因为这个漏洞,网站被攻击了.现在基本上升级到了最新版的编辑器.解决了这个攻击问题.

好了,下面说到怎么去掉多于的按钮.为了方便以后修改,我没有直接删除,只是注释掉代码而已.js注释就是//,完事!

我的代码注释如下:

FCKConfig.ToolbarSets["Default"] = [
 //['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
 ['Source','-','Save','NewPage','Preview'],
 //['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'],
 ['Bold','Italic','Underline','StrikeThrough'],
 //['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 //['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
 ['Image','Table','Rule','PageBreak'],
 '/',
 ['Style','FontFormat','FontName','FontSize'],
 ['TextColor','BGColor'],
 //['FitWindow','ShowBlocks','-','About']  // No comma for the last row.
] ;

OK.现在编辑器简洁很多啦...也不会错位了.省下了很多空间.

你可能感兴趣的:(fckeditor)