【问题标题】:How to change image paths in Redactor editor?如何在 Redactor 编辑器中更改图像路径?
【发布时间】: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,
}

谢谢。

【问题讨论】:

    标签: redactor craftcms


    【解决方案1】:

    首先您应该检查您的编辑器字段是否设置为使用您的图像资产卷:

    如果是,那么问题不在于 Redactor,而在于您的资产量设置。图片的文件系统路径及其 URL 由您的资产卷上的设置确定:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多