我下载的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未定义错误,请教高手哪错了???,急
在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未定义错误,请教高手哪错了???,急
你这个name是content
FCKeditor('editor1');
名字是editor1
当然没定义拉.
你把editor1换成content
<input type="text" name="content" size="80"><br>
<script type="text/javascript">
var editor=new FCKeditor('content'); editor.BasePath='/fckeditor/';
editor.Height=200;
editor.ToolbarSet='Default';
editor.Create();
</script>
应该是这样的吧,你试试。