我现在用fckeditor 作编辑框,有的地方要用多点功能,但前台的地方只要用很少的功能,我想问下,是不是要在站里配置几个fckeditor?可不可以动态配置呢?比如功能自己想几个,就动态去删除它,不要配置多少就多少了。

解决方案 »

  1.   

    fckconfig.jsFCKConfig.ToolbarSets["GuestUser"] = [
        ['Bold','Italic','Underline','StrikeThrough','TextColor','BGColor'],
        ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'] 
    ] ;
    FCKConfig.ToolbarSets["BLOG"] = [
        ['Bold','Italic','Underline','StrikeThrough','TextColor','BGColor'],
        ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
        ['Style','FontFormat','FontName','FontSize'],
        ['TextColor','BGColor'],
    ] ;
    指定的时候:
    oFCKeditor.ToolbarSet = "GuestUser" '设置当前实例的工具面板
      

  2.   

    我只用他放新闻,视频没用过.你去fckeditor.net去看看