2017-06-12 01:51:10 +02:00
|
|
|
from django.contrib.staticfiles.templatetags.staticfiles import static
|
|
|
|
from django.utils.html import format_html
|
|
|
|
from wagtail.wagtailcore import hooks
|
|
|
|
|
|
|
|
|
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
|
|
|
)
|