Clean up the code
authorAlexander Ebert <ebert@woltlab.com>
Mon, 17 Jul 2023 11:17:27 +0000 (13:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 17 Jul 2023 11:17:27 +0000 (13:17 +0200)
wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php
wcfsetup/install/files/style/ui/ckeditor.scss

index 99c3a1bba59b60029f5312d8fa787259356ebf65..958c6b012363ad3cc3068eb1a072800eebe72818 100644 (file)
@@ -53,9 +53,7 @@ class MessageHtmlInputFilter implements IHtmlInputFilter
             // value for `URI.AllowedSchemes` below
             $config->autoFinalize = false;
 
-            $config->set('CSS.AllowedProperties', ['color', 'font-family', 'font-size', 'width']);
-            $config->set('CSS.MaxImgLength', null);
-            $config->set('HTML.MaxImgLength', null);
+            $config->set('CSS.AllowedProperties', ['color', 'font-family', 'font-size']);
             $config->set('HTML.ForbiddenAttributes', ['*@lang', '*@xml:lang']);
 
             $allowedSchemes = $config->get('URI.AllowedSchemes');
@@ -82,9 +80,6 @@ class MessageHtmlInputFilter implements IHtmlInputFilter
      */
     protected function setAttributeDefinitions(\HTMLPurifier_Config $config)
     {
-        //$definition = $config->getCSSDefinition();
-        //$definition->info['width'] = new HTMLPurifier_AttrDef_CSS_Percentage(true);
-
         $definition = $config->getHTMLDefinition(true);
 
         // <br>
index d48068950d3610fb52f1b9a08e41984b6d047b67..58be5fbd05bb43d89fc8a290c2c99f72c8315b54 100644 (file)
@@ -329,6 +329,7 @@ html[data-color-scheme="dark"] {
        inset: 0;
        justify-content: center;
        position: absolute;
+       z-index: 1;
 }
 
 .ckeditor5__restoreDraft__dialog {