我在用到fck时,要去掉一些功能,但是不管我怎么改都没变,不知道为什么?
我是这样写的:
 <textarea rows="10" cols="80" name="docinfo.contents"></textarea>
 <script type="text/javascript"> 
 window.onload = function(){
var oFCKeditor = new FCKeditor('docinfo.contents');//传入参数为表单元素(由FCKeditor生成的input或textarea)的name 
oFCKeditor.BasePath="<%=path%>/fckeditor/";//指定FCKeditor根路径,也就是fckeditor.js所在的路径 
oFCKeditor.Height="100%"; 
oFCKeditor.ToolbarSets="Basic";//指定工具栏,注意是ToolbarSets 
oFCKeditor.ReplaceTextarea();

</script>
并且在我自己新建的js文件用FCKConfig.CustomConfigurationsPath = '/DwrPaperManagement/js/myfckeditor.js' ;
也调用得到,但是不管我指定oFCKeditor.ToolbarSets是什么,它总是显示的是一样的界面可能我给的分数有点少,我是个新手。刚来没什么分。

解决方案 »

  1.   

    有个配置文件里面有菜单来菜单的配置,具体忘了
    形式如下,例如:frontColor,backColor,font|image,flash
    找到这个文件修改菜单配置
    具体手头上无代码无法具体指出
      

  2.   

    不是,我的意思是:不管我把 oFCKeditor.ToolbarSets="Basic";
    我改成Default。
    两个都是显示同样的界面,然后我自己定义界面,把不要的删了,引入后还是没变,我真不知道错在哪里了~
      

  3.   

    新定义工具栏,newTools,在config.js中把basic工具栏那段代码拷贝,然后去掉不想要的工具栏在程序调用的地方,把Basic换成newTools即可
      

  4.   

    我是这样写的啊,我自己的js文件中这样写:FCKConfig.ToolbarSets["Myfck"] = [
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
    ['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.
    ] ;然后在fckcofig.js中引入:FCKConfig.CustomConfigurationsPath = '/DwrPaperManagement/js/myfckeditor.js' ;页面上就这样写:oFCKeditor.ToolbarSets="Myfck";
    可是它不会变化啊