如何在 SilverStripe 4 CMS 中添加自定义样式

How to add custom styles inside SilverStripe 4 CMS

有人知道在 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 损坏

谢谢

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

中发布

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

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