在使用fckeditor 的过程中,经常需要根据实际需要来设置工具栏,显示或隐藏工具栏上的部分按钮。
在默认情况下,fckeditor显示了全部的工具栏。在fckconfig.js中有两个工具栏的配置方案,一个是Default,一个是Basic。我们可以按照他的格式自定义几个选项。
FCKConfig.ToolbarSets["c1"] = [
['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'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
在页面中使用fckeditor时可以写成这样
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.ToolbarSet="c1";
来源: 作者: 日期:2009-06-18 16:35 网友评论:0条 点击:167
FCKeditor在PHP环境下自定义工具条
【发表评论 0条】
- 2009中国Linux内核开发者...
- 09自由软件日上最耀眼的...
- 病毒木马也开源
- 电信手机单向收费暗藏玄...
- IBM推出LINUX上网本
- VirtualBox 3.0.6
- 乔布斯复出 致Twitter瘫...
- 诺顿反病毒2010年新增行...
- 5大主流浏览器对比
- 开源组织OIN购买微软专利...
- 阿里巴巴即将推出云计算
- Windows Vista最新0day漏...
- 2009年9月语言排行榜-PH...
- Windows7中必须清除的招...
- Ajax框架 Prototype 1.6...
- 微软VLK计划和Windows7企...
- 微软发布Windows 7嵌入式...
- VirtualBox 3.0.6 Beta ...
- Windows盗版层出不穷 靠...
- 《电脑报》:定制版Linux 作...
