From: Vincent Vanwaelscappel Date: Wed, 11 Dec 2024 18:07:06 +0000 (+0100) Subject: wait #7221 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d83448e998295ff432eabecece03cb29f5624e4d;p=fluidbook_tools.git wait #7221 @0.5 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 4d2e50d..961cbac 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -243,7 +243,11 @@ class Link break; case static::HTML5MULTIMEDIA: case static::MULTIMEDIA: + return self::getMultimediaInstance($id, $init, $compiler); case static::FLUIDBOOK_TOOLBOX_ELEARNING_CONTENT: + $init['to'] = $compiler->getExternalMultimediaContents($init['to']); + $init['inline'] = 'popup'; + $init['interactive'] = true; return self::getMultimediaInstance($id, $init, $compiler); case static::LOTTIE: return new LottieLink($id, $init, $compiler); @@ -442,8 +446,7 @@ class Link return null; } - $init['to'] = $compiler->getExternalMultimediaContents($init['to']); - $init['inline'] = self::normalizeInlineIntegration($init['inline']); + $init['inline'] = self::normalizeInlineIntegration($init['inline'] ?? true); $ext = mb_strtolower(Files::getExtension($init['to']));