]> _ Git - fluidbook_tools.git/commitdiff
wait #7874 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 1 Dec 2025 17:06:24 +0000 (18:06 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 1 Dec 2025 17:06:24 +0000 (18:06 +0100)
src/Links/HTMLMultimediaImage.php

index 4088a40402a97356d52940ad14bbb104d171cbdf..45666300208f8fc4abef7b868baf8c28f9925cbf 100644 (file)
@@ -16,13 +16,13 @@ class HTMLMultimediaImage extends Link
         $w = $this->width;
         $h = $this->height;
         $this->copyExternalFile($this->to);
-        $alt = '<img class="multimediaimage"  data-width="' . $w . '" data-height="' . $h . '" src="' . Link::getUniversalLocation($this->to) . '" width="' . $w . '" height="' . $h . '" />';
+        $alt = '<img class="multimediaimage" data-scroll="' . $this->scroll . '" data-width="' . $w . '" data-height="' . $h . '" src="' . Link::getUniversalLocation($this->to) . '" width="' . $w . '" height="' . $h . '" />';
         return $alt;
     }
 
     public function getAdditionnalContent()
     {
-        return parent::getAdditionnalContent() . ' aria-hidden="true"';
+        return parent::getAdditionnalContent() . ' aria-hidden="true" data-scroll="' . $this->scroll . '" ';
     }
 
 }