commit 86e0446e497de24484b0c8b3a2a54fa0ec9c338a Author: iunctis Date: Tue May 28 21:59:31 2019 +0200 Initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b264a1 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +## MD Composer Extras + +Add some formatting option in your Discourse composer : underline, center, align right, justify and strikethrough + +For more informations, see : + +- English : https://meta.discourse.org/ +- Français : https://www.mon-discourse.fr/themes/md-composer-extras/ + +
+ +I took some parts of the Iconified Header Links and Slick Image Gallery theme components made by Johani : + +https://meta.discourse.org/t/iconified-header-links/86307 (adding fa5 icons in the theme component) +https://meta.discourse.org/t/slick-image-gallery/81952 (manager the translations inside the theme component) diff --git a/about.json b/about.json new file mode 100644 index 0000000..306509e --- /dev/null +++ b/about.json @@ -0,0 +1,9 @@ +{ + "name": "md-composer-extras", + "component": true, + "license_url": null, + "about_url": "https://www.mon-discourse.fr/themes/md-composer-extras/", + "authors": "Steven", + "theme_version": "1.0", + "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 new file mode 100644 index 0000000..e327d2f --- /dev/null +++ b/common/head_tag.html @@ -0,0 +1,86 @@ + \ No newline at end of file diff --git a/mobile/mobile.scss b/mobile/mobile.scss new file mode 100644 index 0000000..e57a9fd --- /dev/null +++ b/mobile/mobile.scss @@ -0,0 +1,7 @@ +#reply-control .d-editor-button-bar .bullet, #reply-control .d-editor-button-bar .list, #reply-control .d-editor-button-bar .align_justify_button{ + display: none; +} + +.d-editor-spacer { + margin: 0 2px; +} \ No newline at end of file diff --git a/settings.yml b/settings.yml new file mode 100644 index 0000000..2075af4 --- /dev/null +++ b/settings.yml @@ -0,0 +1,47 @@ +underline_button: + default: "Underline" + description: + en: Enter the text for the title of the button in the composer. +underline_text: + default: "Text" + description: + en: Enter the placeholder text that appears in the composer after the user clicks the button. +align_center_button: + default: "Center" + description: + en: Enter the text for the title of the button in the composer. +align_center_text: + default: "Text" + description: + en: Enter the placeholder text that appears in the composer after the user clicks the button. +align_right_button: + default: "Align right" + description: + en: Enter the text for the title of the button in the composer. +align_right_text: + default: "Text" + description: + en: Enter the placeholder text that appears in the composer after the user clicks the button. +align_justify_button: + default: "Justify" + description: + en: Enter the text for the title of the button in the composer. +align_justify_text: + default: "Text" + description: + en: Enter the placeholder text that appears in the composer after the user clicks the button. +strikethrough_button: + default: "Strike-through" + description: + en: Enter the text for the title of the button in the composer. +strikethrough_prompt: + default: "Text" + description: + en: Enter the placeholder text that appears in the composer after the user clicks the button. + +Svg_icons: + type: 'list' + list_type: 'compact' + default: 'fa-align-center|fa-align-right|fa-align-justify|fa-strikethrough|fa-underline' + description: + en: "Include FontAwesome 5 icon classes for each icon used in the list." \ No newline at end of file