from django.utils.html import format_html
from wagtail.wagtailcore import hooks


@hooks.register('insert_editor_js')
def enable_source():
    return format_html(
        """
        <script>
            registerHalloPlugin('hallohtml');
        </script>
        """
    )

[(5, 'wagtail.wagtailcore.hooks.register', 'hooks.register', False, 'from wagtail.wagtailcore import hooks\n'), (7, 'django.utils.html.format_html', 'format_html', False, 'from django.utils.html import format_html\n')]