gestioCOF/kfet/cms/hooks.py

11 lines
279 B
Python
Raw Normal View History

2022-06-28 22:01:04 +02:00
from django.templatetags.static import static
from django.utils.html import format_html
2024-12-19 14:07:35 +01:00
from wagtail import hooks
@hooks.register("insert_editor_css")
def editor_css():
return format_html(
'<link rel="stylesheet" href="{}">', static("kfetcms/css/editor.css")
)