mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-19 04:31:11 +00:00
Only load Hallo CSS if Hallo is in use
This commit is contained in:
parent
9521f21359
commit
194161ec59
2 changed files with 4 additions and 3 deletions
|
|
@ -133,7 +133,9 @@ class HalloRichTextArea(WidgetWithScript, widgets.Textarea):
|
|||
media = Media(js=[
|
||||
'wagtailadmin/js/vendor/hallo.js',
|
||||
'wagtailadmin/js/hallo-bootstrap.js',
|
||||
])
|
||||
], css={
|
||||
'all': ['wagtailadmin/css/panels/rich-text.css']
|
||||
})
|
||||
|
||||
for plugin in self.plugins:
|
||||
media += plugin.media
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
CSS declarations to be included on the 'create page' and 'edit page' views
|
||||
{% endcomment %}
|
||||
|
||||
<link rel="stylesheet" href="{% static 'wagtailadmin/css/layouts/page-editor.css' %}" type="text/css" />
|
||||
<link rel="stylesheet" href="{% static 'wagtailadmin/css/panels/rich-text.css' %}" type="text/css" />
|
||||
<link rel="stylesheet" href="{% static 'wagtailadmin/css/layouts/page-editor.css' %}" />
|
||||
|
||||
{% hook_output 'insert_editor_css' %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue