Enable image resizing again
authorAlexander Ebert <ebert@woltlab.com>
Tue, 1 Aug 2023 13:33:08 +0000 (15:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 1 Aug 2023 13:33:08 +0000 (15:33 +0200)
wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php

index 6d108c1d16c1ff39f574d027bbf042639921b5b3..538a3ecabdd40cb0836f753757b6b780bfc949b4 100644 (file)
@@ -70,9 +70,6 @@ final class AttachmentBBCode extends AbstractBBCode
             $width = '100%';
         }
 
-        // TODO: Remove this.
-        $width = 'auto';
-
         if ($thumbnail) {
             return $this->showImageAsThumbnail(
                 $attachment,
index e6f1178f26c8c02afd9a424a88ace146473c129e..4e30ec8e9bf12feccfffc57a52e9b54c9b5bdce3 100644 (file)
@@ -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 `<figure>` element that is the target
         // of the resize operation.
         if ($element->parentNode->nodeName === 'figure') {