欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

ckeditor放在apache目录里,报错ckeditor未定义【求助】

程序员文章站 2022-04-23 20:31:39
...
ckeditor放在放在服务器目录里,用localhost的方式打开,调用不了,
后面试用UEditor,KindEditor,都是同要样的问题,报错 ** is undefine

但是用NicEditor,是好的,不知道为什么?


回复讨论(解决方案)

路径问题。。。

路径问题。。。


谢谢你的回答,但是应该不是路径问题,因为直接点击打开是可以的,只是放在localhost里面,用apache的方式访问就出问题。

描述得糊里糊涂的,“用apache的方式访问” 是指什么? url地址是什么?

另外,贴出完整的错误信息以供分析。

http://localhost/ckeditor/samples/replacebycode.html

用这个地址打开有问题,google浏览器下出现错误信息如下:
Uncaught SyntaxError: Unexpected token ; ckeditor.js:156
Uncaught ReferenceError: CKEDITOR is not defined

描述得糊里糊涂的,“用apache的方式访问” 是指什么? url地址是什么?

另外,贴出完整的错误信息以供分析。

http://localhost/ckeditor/samples/replacebycode.html

用这个地址打开有问题,google浏览器下出现错误信息如下:
Uncaught SyntaxError: Unexpected token ; ckeditor.js:156
Uncaught ReferenceError: CKEDITOR is not defined

这是有问题的,地址栏是:http://localhost/ckeditor/samples/replacebycode.html

这是没问题的,地址栏是:E:\wamp\www\ckeditor\samples\replacebycode.html