【发布时间】:2020-05-30 12:04:15
【问题描述】:
我在 CraftCMS 中使用 Redactor 编辑器来发布博客文章。当我在 Redactor 中插入图片时,详细信息博客页面甚至 CMS 的 Redactor 编辑器中的 URL 都是错误的(相对路径),在上传图片的上传目录之前缺少 /。
如何在 URL 的开头添加斜杠或将它们设置为使用绝对路径?
博客文章的 URL 类似于 www.website.com/blog/post-name
这是我对 Redactor 的 json 配置:
{
"buttons": ["formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "image", "video", "html"],
"plugins": ["fullscreen", "video"],
"linkNewTab": true,
"toolbarFixed": true,
"imageFigure": false,
}
谢谢。
【问题讨论】: