CKEditor 和插件脚本的路径
我在网站上使用 CKEditor 时没有出现任何问题,然后将网站从一个目录移动到另一个目录 - /vmgdev 到 /vmg。除了 ckeditor 没有出现之外,一切工作正常。 ckeditor 似乎无法加载自动增长插件脚本,因为它仍在查看旧路径。禁用自动增长可以修复问题,并且 ckeditor 会再次出现。在使用编辑器的页面头部,我仍然有以下内容:
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {
...
"loadPlugins": { "autogrow": { "name": "autogrow", "desc": "Autogrow plugin", "path": "/vmgdev/sites/all/modules/ckeditor/ckeditor/plugins/autogrow/", "default": "f" },
...;
//--><!]]>
</script>
如何修复自动增长插件路径?在允许我更改 ckeditor 全局配置文件的表单中,插件路径设置为 %m/plugins ,在此字段下方,它声称 %m 等于 %m - /vmg/sites/all/modules/ckeditor,但那就是显然不是正在使用的路径。
谢谢。
I was using CKEditor with no problems on my site then moved the site from one directory to another -- /vmgdev to /vmg. Everything is working OK except ckeditor, which doesn't appear. It seems that ckeditor is failing to load the autogrow plugin scripts, as it's still looking at the old path. Disabling autogrow fixes the problem and ckeditor appears again. In the head of a page that uses the editor I still have the following:
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {
...
"loadPlugins": { "autogrow": { "name": "autogrow", "desc": "Autogrow plugin", "path": "/vmgdev/sites/all/modules/ckeditor/ckeditor/plugins/autogrow/", "default": "f" },
...;
//--><!]]>
</script>
How I can I fix the autogrow plugin path? In the form that allows me to change the ckeditor global profile the plugins path is set to %m/plugins and beneath this field it claims that %m is equal to %m - /vmg/sites/all/modules/ckeditor, but that's obviously not the path that's being used.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请记住清除 Drupal 服务器上的缓存以及浏览器上的缓存。
由于 ckeditor 依赖于大量 JavaScript,我发现浏览器通常会缓存 JavaScript,并且即使您刷新了 Drupal 缓存也不会显示您所做的更改。
Remember to clear the cache on your Drupal server as well as the cache on your browser.
Since ckeditor relies on a lot of javascript, I've found that often the browser caches the javascript and doesn't show the changes you've made even if you've refreshed the Drupal cache.