Change font-sizes in CKEditor (#5746)
authorOlaf Braun <olaf_schmitz_1@t-online.de>
Mon, 8 Jan 2024 12:19:02 +0000 (13:19 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 12:19:02 +0000 (13:19 +0100)
* Allow min font-size 11px

* Change max font-sizes

* Use saner values for the font size

These values are also in line with the default font sizes.

* Rebuild the JS artifacts

---------

Co-authored-by: Alexander Ebert <ebert@woltlab.com>
ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSpan.class.php

index f3ac00b3f3a4b2ab335b04090c9aab400079ff61..bf4a37188292bdb352932048997898ca04e8f181 100644 (file)
@@ -348,7 +348,7 @@ class ConfigurationBuilder {
         ],
       },
       fontSize: {
-        options: [8, 10, 12, "default", 18, 24, 36],
+        options: [12, "default", 18, 23, 28],
       },
       toolbar: this.#getToolbar(),
       ui: {
index 687404b063491952d7591ec9d9ca4c64f487f3cf..6670c5cfcd73b7afcbdfb9e6b3df5099ccf118f5 100644 (file)
@@ -309,7 +309,7 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
                     ],
                 },
                 fontSize: {
-                    options: [8, 10, 12, "default", 18, 24, 36],
+                    options: [12, "default", 18, 23, 28],
                 },
                 toolbar: this.#getToolbar(),
                 ui: {
index d9865ae895f94a56567015d98a3ff9e87ed9611f..8841acef44127bf2c8734be4ac9661b28c87764a 100644 (file)
@@ -46,7 +46,7 @@ class HtmlInputNodeSpan extends AbstractHtmlInputNode
                             $min = 8;
                             $max = 36;
                         } else {
-                            $min = 11;
+                            $min = 12;
                             $max = 48;
                         }