From b562dfea233c388a70f78578bc885d813b40d7f5 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Mon, 25 Nov 2024 16:46:29 +0100 Subject: [PATCH] Remove the nodes/lists/marks comment --- django_prose_editor/widgets.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/django_prose_editor/widgets.py b/django_prose_editor/widgets.py index 336a300..e76e695 100644 --- a/django_prose_editor/widgets.py +++ b/django_prose_editor/widgets.py @@ -38,26 +38,13 @@ def media(self): ) def get_config(self): - config = self.config or { + return self.config or { "types": None, "history": True, "html": True, "typographic": True, } - """ - Nodes: - heading blockquote horizontal_rule hard_break - - Lists: - ordered_list bullet_list list_item - - Marks: - link strong em underline strikethrough sub sup - """ - - return config - def get_context(self, name, value, attrs): context = super().get_context(name, value, attrs) context["widget"]["attrs"]["data-django-prose-editor"] = json.dumps(