日期:2014-05-19  浏览次数:20632 次

FCKeditor未定义错误
我下载的FCKeditor 2.6.4, 解压后放到工程的根目录下
在HTML文件配置如下:
 <script type="text/javascript" src="/fckeditor/fckediror.js"></script>

  <input type="text" name="content" size="80"><br>
  <script type="text/javascript">
   
  var editor=new FCKeditor('editor1');
  editor.BasePath='/fckeditor/';
  editor.Height=200;
  editor.ToolbarSet='Default';
  editor.Create();
  </script>
但在浏览器运行时不出现编辑框还提示FCKeditor未定义错误,请教高手哪错了???,急。。。

------解决方案--------------------
<input type="text" name="content" size="80">
你这个name是content
FCKeditor('editor1'); 
名字是editor1
当然没定义拉.
你把editor1换成content