【问题标题】:How to add custom styles inside SilverStripe 4 CMS如何在 SilverStripe 4 CMS 中添加自定义样式
【发布时间】:2018-01-24 20:11:33
【问题描述】:

有人知道在 CMS 中为页面添加自定义 CSS 的最佳方法是什么吗? 我发现我们可以在 config.yml 内部做类似的事情:

SilverStripe\Forms\HTMLEditor\TinyMCEConfig:
  base_dir: 'silverstripe/admin:thirdparty/tinymce'
    editor_css:
      - 'themes/base/build/bundle-editor.css'

但这仅链接到 TinyMCE,我想将我的样式添加到 CMS 中的所有页面,或者至少对于使用 SilverStripe\Forms\TreeDropdownField 的页面,因为它已损坏:

TreeDropdownField 损坏

谢谢

【问题讨论】:

    标签: content-management-system silverstripe


    【解决方案1】:

    不幸的是,这是一个核心错误,已经修复,将在下一个 4.0.x 版本 (4.0.2) 或 4.1.0 中发布。

    更多信息:https://github.com/silverstripe/silverstripe-admin/issues/377

    编辑: 4.0.2 已经发布,所以现在应该解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      • 1970-01-01
      • 2020-03-14
      • 2014-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多