MDL-77646 lib: Use iframe instead of object to display pdf.

This commit is contained in:
Derek Henderson 2024-11-19 18:07:06 +01:00 committed by Luca Bösch
parent 1e51bc0b9c
commit 392f443e5c

View file

@ -234,10 +234,9 @@ function resourcelib_embed_pdf($fullurl, $title, $clicktoopen) {
$code = <<<EOT
<div class="resourcecontent resourcepdf">
<object id="resourceobject" data="$fullurl" type="application/pdf" width="800" height="600">
<param name="src" value="$fullurl" />
<iframe id="resourceobject" src="$fullurl" title="$title" width="800" height="600">
$clicktoopen
</object>
</iframe>
</div>
EOT;