Windows系统上的ckeditor问题
我遇到了麻烦,我想在我的项目中使用 Ckeditor,我有安装了 Zend Server 的 Windows(apache2、php 5.2、mysql5),编码是 utf-8。当我初始化 ckeditor 或另一个 elRTE 编辑器时,出现错误:语法错误 [中断此错误] \n 所有 html 都是有效的,如果我删除 doctype 行,脚本会在另一行中显示错误:XML 不能是整个程序... jQuery 工作正常,我认为问题出在 apache 或 php 的配置中,有人可以帮忙吗!非常感谢!
i'v got a trouble, i want to use Ckeditor with my project, i have Windows with Zend Server installed (apache2, php 5.2, mysql5), encoding is utf-8. When i initialize ckeditor or another elRTE editor i have error: syntax error
[Break on this error] \n
all html is valid, if i delete doctype line, script says that error in another line: XML cannot be the whole program...
jQuery work's fine, i think that problem is in the config of apache or php, can somebody help! Thx a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不需要写整个路径!忽略第一个 / 就足够了。表示
ck/ckeditor.js
而不是/ck/ckeditor.js
You don't need to write the whole path! It's enough to leave the first / out. Means
ck/ckeditor.js
instead of/ck/ckeditor.js
我发现一个问题!我包含带有短路径的 js lib,例如 - /ck/ckeditor.js ,这是错误的方式。当我将其更改为完整路径 http://site/ck/ckeditor.js 时,问题就消失了! :)
i found a problem! i include js lib with short path like - /ck/ckeditor.js , it was the wrong way. When i change it to full path http://site/ck/ckeditor.js, trouble was gone! :)