Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1 @@
<div class="rich-text">{{ html|safe }}</div>

View File

@@ -0,0 +1,14 @@
from django.test import TestCase
from wagtail.templatetags.wagtailcore_tags import richtext
class TestTemplateTag(TestCase):
def test_no_contrib_legacy_richtext_no_wrapper(self):
self.assertEqual(richtext("Foo"), "Foo")
def test_contrib_legacy_richtext_renders_wrapper(self):
with self.modify_settings(
INSTALLED_APPS={"prepend": "wagtail.contrib.legacy.richtext"}
):
self.assertEqual(richtext("Foo"), """<div class="rich-text">Foo</div>""")