用HTML的文本域控件时,可以用JS清空。。
可是加上class="ckeditor",用CKEditor之后再点清空按钮就不管用了。。请问怎么解决?

解决方案 »

  1.   

    http://www.yqdown.com/wangyesheji/Javascript/3126.htm
      

  2.   

    http://www.yqdown.com/wangyesheji/Javascript/3126.htm
      

  3.   


        <script type="text/javascript">
        function ResetText(){
      var oEditor = FCKeditorAPI.GetInstance('newtextarea');
      oEditor.EditorDocument.body.innerText = '';      }
    脚本写成这样后,报错说FCKeditorAPI未定义。。不知这个变量从哪来的。。newtextarea是文本域的ID。
      

  4.   

    我用的是FCKeditor3.0以上的版本,叫CKeditor
    把该变量改名为CKeditorAPI也提示未定义。
      

  5.   

    不知道楼主找到了没有,我也在找这清空ckeditor中的方法