From: Alexander Ebert Date: Tue, 1 Aug 2023 13:33:08 +0000 (+0200) Subject: Enable image resizing again X-Git-Tag: 6.0.0_Alpha_8~27^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f47b775eaeb222c9b230ef4ccaf9ba76b63ae20;p=GitHub%2FWoltLab%2FWCF.git Enable image resizing again --- 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') {