From ed4dffb2e902188bf5fbb0997007f5a7677b3199 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 17 Jul 2023 13:17:27 +0200 Subject: [PATCH] Clean up the code --- .../html/input/filter/MessageHtmlInputFilter.class.php | 7 +------ wcfsetup/install/files/style/ui/ckeditor.scss | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php index 99c3a1bba5..958c6b0123 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php @@ -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); //
diff --git a/wcfsetup/install/files/style/ui/ckeditor.scss b/wcfsetup/install/files/style/ui/ckeditor.scss index d48068950d..58be5fbd05 100644 --- a/wcfsetup/install/files/style/ui/ckeditor.scss +++ b/wcfsetup/install/files/style/ui/ckeditor.scss @@ -329,6 +329,7 @@ html[data-color-scheme="dark"] { inset: 0; justify-content: center; position: absolute; + z-index: 1; } .ckeditor5__restoreDraft__dialog { -- 2.20.1