From 19c1361e47de4cfc7bd9ab6dacb9ebf8c9ebaa1b Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Wed, 19 Dec 2018 14:10:39 +0100 Subject: [PATCH] core: fix heading in MarkdownInput --- core/templates/core/markdown_textarea.jinja | 6 +++--- core/views/forms.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/templates/core/markdown_textarea.jinja b/core/templates/core/markdown_textarea.jinja index 87bcc8de..3b4637ef 100644 --- a/core/templates/core/markdown_textarea.jinja +++ b/core/templates/core/markdown_textarea.jinja @@ -53,10 +53,10 @@ // showIcons: ["code", "table", "clean-block"], toolbar: [ { - name: "heading", - action: SimpleMDE.toogleHeadingSmaller, + name: "heading-smaller", + action: SimpleMDE.toggleHeadingSmaller, className: "fa fa-header", - title: "{{ translations.heading }}" + title: "{{ translations.heading_smaller }}" }, { name: "italic", diff --git a/core/views/forms.py b/core/views/forms.py index 874ec86c..1b7f83ab 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -102,7 +102,7 @@ class MarkdownInput(Textarea): "css": static("core/simplemde/simplemde.min.css"), } context["translations"] = { - "heading": _("Heading"), + "heading_smaller": _("Heading"), "italic": _("Italic"), "bold": _("Bold"), "strikethrough": _("Strikethrough"),