2022-06-28 22:01:04 +02:00
|
|
|
from django.templatetags.static import static
|
2017-06-12 01:51:10 +02:00
|
|
|
from django.utils.html import format_html
|
2019-02-04 22:50:27 +01:00
|
|
|
from wagtail.core import hooks
|
2017-06-12 01:51:10 +02:00
|
|
|
|
|
|
|
|
2018-10-06 12:35:49 +02:00
|
|
|
@hooks.register("insert_editor_css")
|
2017-06-12 01:51:10 +02:00
|
|
|
def editor_css():
|
|
|
|
return format_html(
|
2018-10-06 12:35:49 +02:00
|
|
|
'<link rel="stylesheet" href="{}">', static("kfetcms/css/editor.css")
|
2017-06-12 01:51:10 +02:00
|
|
|
)
|