CKEditor 和插件脚本的路径

发布于 2024-12-08 09:10:36 字数 693 浏览 1 评论 0原文

我在网站上使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

久夏青 2024-12-15 09:10:36

请记住清除 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文