各位大虾,我有这个需求:页面刚打开的时候,CKEditor默认工具栏只要一行简单的按钮,最后加一个'高级'按钮,当点击'高级'按钮的时候,替换CKEditor的工具栏为full格式的.这个如何实现呢??
谢谢了...在线等....

解决方案 »

  1.   

    这个是配置toolbar信息的地方.我已经配置了simple工具栏.现在是如何把simple替换成full.我的方法总js错误:K is null 和 A.document is null;
    尤其在IE6上,变更后无法编辑.只能点一下'源码',再点一下'源码'才可以....
     
     editor.destroy(); //Back to Textarea
     editor = null;
     var config = { toolbar : 'Full' };
     editor = CKEDITOR.replace( areaName,config); //Create CKEditor
      

  2.   

    一直在用fckeditor, 没用过ckeditorhttp://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html上面的这个是ckeditor的文档,你可以看看
      

  3.   

    這樣就可以切換啦
    var Editor = CKEDITOR.instances.editor2;
      if ( Editor )
        Editor.destroy();
      CKEDITOR.replace( 'editor2',{toolbar : 'Basic'});My BLog:http://herolin.twbbs.org