原本用得好好的FCKeditor,忽然间用不了了.我做了一下测试,发现如果直接在硬盘里双击打开FCKeditor的演示文件sample01.html,比如用这个网址
file:///E:/APMServ5.2.6/www/htdocs/fckeditor/_samples/html/sample01.html能够正常显示FCKeditor的编辑界面.如下图所示
但是,当我使用以下网址打开该页面的时候,
http://localhost/fckeditor/_samples/html/sample01.htmlFCKeditor的编辑界面的编辑界面就显示不出来了,遨游左下角提示有脚步错误,如下图所示

解决方案 »

  1.   

    用浏览器打开, 你那样可能识别不了js 就是要这样http://localhost/.....
      

  2.   


    我的情况相反哦.我用http://localhost/...这样的打开的话就是js错误,无法显示FCKeditor的编辑界面用文件的具体地址的话就正常.具体可以看我帖子的截图
      

  3.   

    错误代码如下所示:网页错误详细信息用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; WebSaver; CIBA; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; aff-kingsoft-ciba)
    时间戳: Wed, 4 Nov 2009 16:31:25 UTC
    消息: 缺少 '}'
    行: 200
    字符: 3649
    代码: 0
    URI: http://localhost/fckeditor/editor/js/fckeditorcode_ie.js
    消息: 'FCKConfig' 未定义
    行: 27
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/fckconfig.js
    消息: 'FCKBrowserInfo' 未定义
    行: 125
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 缺少对象
    行: 164
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 'FCKTools' 未定义
    行: 176
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 缺少对象
    行: 195
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 'FCKLang' 未定义
    行: 203
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 'FCKBrowserInfo' 未定义
    行: 270
    字符: 1
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
    消息: 缺少对象
    行: 210
    字符: 2
    代码: 0
    URI: http://localhost/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
      

  4.   


    那么奇怪, 我直接打开出现和你这样的问题, 用http://localhost/...打开是正常的出现这种情况, 好明显是配置错误了, 就是fck要引用的文件没有正确配置
      

  5.   

    可是我的fckeditor文件是从官方下载下来直接解压的,根本没有做什么更改,而已sample文件也是自带的例子,里面的引用我看了看没什么问题啊
      

  6.   


    文件的地址是
    E:\APMServ5.2.6\www\htdocs\fckeditor\_samples\php\sample01.php里面的引用是
    include("../../fckeditor.php") ;
      

  7.   

    把以前备份的FCKeditor文件覆盖过来,居然好了…我郁闷啊~~~