From 0f47b775eaeb222c9b230ef4ccaf9ba76b63ae20 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 1 Aug 2023 15:33:08 +0200 Subject: [PATCH] Enable image resizing again --- .../files/lib/system/bbcode/AttachmentBBCode.class.php | 3 --- .../lib/system/html/input/node/HtmlInputNodeImg.class.php | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 6d108c1d16..538a3ecabd 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -70,9 +70,6 @@ final class AttachmentBBCode extends AbstractBBCode $width = '100%'; } - // TODO: Remove this. - $width = 'auto'; - if ($thumbnail) { return $this->showImageAsThumbnail( $attachment, diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php index e6f1178f26..4e30ec8e9b 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php @@ -131,7 +131,7 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode $attachmentID, $float, $thumbnail, - //$width, + $width, ]; $newElement = $element->ownerDocument->createElement('woltlab-metacode'); @@ -266,9 +266,6 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode protected function mirrorWidthAttribute(\DOMElement $element): void { - // TODO: Remove this. - return; - // Aligned images are wrapped in a `
` element that is the target // of the resize operation. if ($element->parentNode->nodeName === 'figure') { -- 2.20.1