From 01b6792f220607c0f0541b3b1bcf659a8c74fdc2 Mon Sep 17 00:00:00 2001 From: iunctis Date: Sat, 8 Jun 2019 17:39:44 +0200 Subject: [PATCH] v1.1 - Extra line on align buttons I added by default an extra line on the align button for a better support of the underline button --- about.json | 2 +- common/head_tag.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/about.json b/about.json index 306509e..873ddca 100644 --- a/about.json +++ b/about.json @@ -4,6 +4,6 @@ "license_url": null, "about_url": "https://www.mon-discourse.fr/themes/md-composer-extras/", "authors": "Steven", - "theme_version": "1.0", + "theme_version": "1.1", "learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" } diff --git a/common/head_tag.html b/common/head_tag.html index e327d2f..f391db4 100644 --- a/common/head_tag.html +++ b/common/head_tag.html @@ -16,7 +16,7 @@ api.onToolbarCreate(toolbar => { id: "align_center_button", group: "extras", icon: "align-center", - perform: e => e.applySurround('
', '
', 'align_center_text') + perform: e => e.applySurround('
\n\n', '\n
', 'align_center_text') }); }); api.onToolbarCreate(toolbar => { @@ -24,7 +24,7 @@ api.onToolbarCreate(toolbar => { id: "align_right_button", group: "extras", icon: "align-right", - perform: e => e.applySurround('
', '
', 'align_right_text') + perform: e => e.applySurround('
\n\n', '\n
', 'align_right_text') }); }); api.onToolbarCreate(toolbar => { @@ -32,7 +32,7 @@ api.onToolbarCreate(toolbar => { id: "align_justify_button", group: "extras", icon: "align-justify", - perform: e => e.applySurround('
', '
', 'align_justify_text') + perform: e => e.applySurround('
\n\n', '\n
', 'align_justify_text') }); });