]> _ Git - fluidbook_tools.git/commitdiff
wip #7913
authorsoufiane <soufiane@cubedesigners.com>
Wed, 14 Jan 2026 10:45:00 +0000 (11:45 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 14 Jan 2026 10:45:00 +0000 (11:45 +0100)
src/Links/AltTextImageLink.php

index c656ea90b97044e7f5e67f28b58636755c4d4a26..13b3166896e523d3ef0048c9d95f55721d2260f6 100644 (file)
@@ -2,10 +2,12 @@
 
 namespace Fluidbook\Tools\Links;
 
-class AltTextImageLink extends ContentLink
-{
+class AltTextImageLink extends NormalLink {
+    protected $role = '';
+
     public function getHTMLContent()
     {
-        return '<div data-tooltip="'.$this->to.'"></div><img src="" style="' . $this->contentInlineStyles . '" />';
+        $attrs = $this->getTooltipAttribute($this->to);
+        return '<div id="ok" '.$attrs.'>'.$this->to.'</div>';
     }
 }