我需要帮助修改 CKEditor 的默认图像属性路径
我正在使用 CKEditor 和 Drupal 6.19。我已经尝试使用 CKFinder 和 IMCE 进行安装。当图像从图像浏览器插入图像属性窗口时,CKEditor 会得到一个类似于以下的 url:
/sites/example.com/files/images/my_image.jpg
我希望 CKEditor 只具有:
/files/images/my_image。 我的网站的jpg
文件结构是这样的:
/sites/all/modules/ckeditor/ckeditor /站点/所有/模块/ckeditor/ckfinder /站点/所有/模块/imce /sites/example.com/files/images/my_mages.jpg
此 url 是从文件浏览器传递的,还是 CKEditor 中的默认值?
如果是 CKEditor,我在哪里可以找到更改此设置的代码,或者是否有可能?
I am using CKEditor with Drupal 6.19. I have tried my installation with both CKFinder and IMCE. When an image is inserted from the image browser into the Image Properties window, CKEditor gets a url similar to:
/sites/example.com/files/images/my_image.jpg
I want CKEditor to simply have:
/files/images/my_image.jpg
file structure of my site is this:
/sites/all/modules/ckeditor/ckeditor
/sites/all/modules/ckeditor/ckfinder
/sites/all/modules/imce
/sites/example.com/files/images/my_mages.jpg
Is this url passed from the file browser, or a default in CKEditor?
If it is CKEditor, where do I find the code to change this, or is it even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
建议的 URL
/sites/example.com/files/images/my_image.jpg
是正确的路径。那是因为所有文件都上传到/sites/example.com/files/
文件夹。该行为是正确的,不应修改。 (除非我没有正确理解您的问题,或者您有充分的理由将图像存储在DRUPAL_ROOT/files/images
下)The URL suggested
/sites/example.com/files/images/my_image.jpg
is the correct path. Thats because all files are uploaded to the/sites/example.com/files/
folder. The behavior is correct and should not be modified. (Unless I've not understood your problem correctly or there is a very good reason why you want to store your images underDRUPAL_ROOT/files/images
)