FCKeditor设置多个工具栏样式

FCKeditor 中自带了两种工具栏样式,Default 和Base。可是我现在想再加一种工具栏样式。 我试了一下。将Default样式的设置复制了一下 改为FCKConfig.ToolbarSets["Blogedit"],里面个体的工具栏项我就不写了。可是当我在调用这个工具栏时,却提示我说工具 栏Blogedit设置没有找到,这是怎么回事啊?难道FCKeditor只能使用Def ault 和Base这两种样式吗? 找到   fckconfig.js   里面设置 这里我添加了   ddd   工具栏样式 要用的时候只需要 在

引用的时候 $this->ToolbarSet = 'ddd' ;   就OK 了

 

XML/HTML代码

  1. FCKConfig.ToolbarSets["Default"] = [   
  2. ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],   
  3. ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],   
  4. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],   
  5. ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],   
  6. '/',   
  7. ['Bold','Italic','Underline','StrikeThrough','-','Subscrīpt','Superscrīpt'],   
  8. ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],   
  9. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],   
  10. ['Link','Unlink','Anchor'],   
  11. ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],   
  12. '/',   
  13. ['Style','FontFormat','FontName','FontSize'],   
  14. ['TextColor','BGColor'],   
  15. ['FitWindow','ShowBlocks','-','About']   // No comma for the last row.   
  16. ] ;   
  17. FCKConfig.ToolbarSets["Basic"] = [   
  18. ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']   
  19. ] ;   
  20. FCKConfig.ToolbarSets["ddd"] = [   
  21.          ['OrderedList','UnorderedList','-','Link','Unlink','-','About','Bold','Italic','Underline','StrikeThroug   
  22. h','-','Subscrīpt','Superscrīpt']   

然后对FCKeditor控件里面ToolberSet属性进行设置。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值