CKEditor默认文件路径
使用 CKEditor(与 KCFinder 结合进行文件上传),当我使用浏览按钮并检索文件时,我得到路径:
"/demo/cms/uploads/images/image.jpg"
这是图像的路径,但是如果我随后在编辑器中移动文件,路径会自动更改to:
"uploads/images/image.jpg"
这在真正提取内容的地方不起作用。理想情况下,我希望两个路径都是“uploads/images/”,但如果有一种方法可以修改任一路径,至少使其保持一致,我可以在保存内容后覆盖路径。
有没有办法修改其中一个路径?我无法在文档中找到该值。
Using CKEditor (combined with KCFinder for file upload), when I use the browse button and retrieve my file I get the path:
"/demo/cms/uploads/images/image.jpg"
Which is the path to the image, however if I then move the file around within the editor, the automatically path changes to:
"uploads/images/image.jpg"
Which won't work from where the content is really being pulled. Ideally I would like both paths to be "uploads/images/" but if there is a way to modify either one that will at least make it consistent that I can overwrite the path after the content is saved.
Is there a way to modify either of the paths? I haven't been able to find the value in the docs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
能够使用 php 和正则表达式在保存内容后删除任何路径。
Was able to use php and a regex to just strip out any path after the content is saved.