Add options to suppress text formatting in existing messages
authorAlexander Ebert <ebert@woltlab.com>
Sun, 25 Jun 2023 12:39:17 +0000 (14:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 25 Jun 2023 12:39:17 +0000 (14:39 +0200)
com.woltlab.wcf/option.xml
constants.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 8fd5ccd3c43eace87594831da7465a8651767199..3a383b332b77af398ca796375937de52b85302a1 100644 (file)
                        <category name="message.general.unfurl">
                                <parent>message.general</parent>
                        </category>
+                       <category name="message.general.formatting">
+                               <parent>message.general</parent>
+                       </category>
                        <category name="message.attachment">
                                <parent>message</parent>
                        </category>
@@ -1019,6 +1022,23 @@ XING</selectoptions>
                                <defaultvalue>1</defaultvalue>
                        </option>
                        <!-- /message.general.unfurl -->
+                       <!-- message.general.formatting -->
+                       <option name="formatting_remove_color">
+                               <categoryname>message.general.formatting</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>1</defaultvalue>
+                       </option>
+                       <option name="formatting_remove_font">
+                               <categoryname>message.general.formatting</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>1</defaultvalue>
+                       </option>
+                       <option name="formatting_remove_size">
+                               <categoryname>message.general.formatting</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>1</defaultvalue>
+                       </option>
+                       <!-- /message.general.formatting -->
                        <!-- message.censorship -->
                        <option name="censored_words">
                                <categoryname>message.censorship</categoryname>
index 8edc8cab506a1107cf4164251de762b4b5ff464b..3bf6fafa4a90399bf6c5b7ea2ccd211223183957 100644 (file)
 \define('INTERNAL_HOSTNAMES', '');
 \define('MODULE_URL_UNFURLING', 1);
 \define('FIRST_TIME_SETUP_STATE', 0);
+\define('FORMATTING_REMOVE_COLOR', 1);
+\define('FORMATTING_REMOVE_FONT', 1);
+\define('FORMATTING_REMOVE_SIZE', 1);
index 9a7b119dadc08d337b89f152d689a04b89096f85..48e4227fad1cc0143bd825f2cc8637eca765f7d6 100644 (file)
@@ -1748,6 +1748,13 @@ Die Datenbestände werden sorgfältig gepflegt, aber es ist nicht ausgeschlossen
                <item name="wcf.acp.option.category.message.general.unfurl"><![CDATA[Rich Embeds]]></item>
                <item name="wcf.acp.option.module_url_unfurling"><![CDATA[Rich Embeds aktivieren]]></item>
                <item name="wcf.acp.option.module_url_unfurling.description"><![CDATA[Erzeugt eine Vorschau mit Titel, Beschreibung und Bild für externe Links in Nachrichten.]]></item>
+               <item name="wcf.acp.option.category.message.general.formatting"><![CDATA[Textformatierung]]></item>
+               <item name="wcf.acp.option.formatting_remove_color"><![CDATA[Schriftfarbe entfernen]]></item>
+               <item name="wcf.acp.option.formatting_remove_color.description"><![CDATA[Verhindert die Verwendung von abweichenden Schriftfarben und entfernt diese bei der Anzeige bereits bestehender Nachrichten.]]></item>
+               <item name="wcf.acp.option.formatting_remove_font"><![CDATA[Schriftart entfernen]]></item>
+               <item name="wcf.acp.option.formatting_remove_font.description"><![CDATA[Verhindert die Verwendung von abweichenden Schriftarten und entfernt diese bei der Anzeige bereits bestehender Nachrichten.]]></item>
+               <item name="wcf.acp.option.formatting_remove_size"><![CDATA[Schriftgröße entfernen]]></item>
+               <item name="wcf.acp.option.formatting_remove_size.description"><![CDATA[Verhindert die Verwendung von abweichenden Schriftgrößen und entfernt diese bei der Anzeige bereits bestehender Nachrichten.]]></item>
        </category>
        <category name="wcf.acp.customOption">
                <item name="wcf.acp.customOption.list"><![CDATA[Eingabefelder]]></item>
index b8ca448a08415407b5d35829331a2d3d61c8a131..64ab145a588024d88bae6a003f8c70220bb0dc3a 100644 (file)
@@ -1731,6 +1731,13 @@ The database is carefully maintained, but there will be always be a margin of er
                <item name="wcf.acp.option.category.message.general.unfurl"><![CDATA[Rich Embeds]]></item>
                <item name="wcf.acp.option.module_url_unfurling"><![CDATA[Enable rich embeds]]></item>
                <item name="wcf.acp.option.module_url_unfurling.description"><![CDATA[Creates a preview with title, description and image for external links in messages.]]></item>
+               <item name="wcf.acp.option.category.message.general.formatting"><![CDATA[Text Format]]></item>
+               <item name="wcf.acp.option.formatting_remove_color"><![CDATA[Remove font color]]></item>
+               <item name="wcf.acp.option.formatting_remove_color.description"><![CDATA[Prevents the use of different font colors and removes them when displaying existing messages.]]></item>
+               <item name="wcf.acp.option.formatting_remove_font"><![CDATA[Remove font family]]></item>
+               <item name="wcf.acp.option.formatting_remove_font.description"><![CDATA[Prevents the use of different font families and removes them when displaying existing messages.]]></item>
+               <item name="wcf.acp.option.formatting_remove_size"><![CDATA[Remove font size]]></item>
+               <item name="wcf.acp.option.formatting_remove_size.description"><![CDATA[Prevents the use of different font sizes and removes them when displaying existing messages.]]></item>
        </category>
        <category name="wcf.acp.customOption">
                <item name="wcf.acp.customOption.list"><![CDATA[Option Fields]]></item>