Skip to content

Commit

Permalink
Remove the nodes/lists/marks comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Nov 25, 2024
1 parent d00abfc commit b562dfe
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions django_prose_editor/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b562dfe

Please sign in to comment.