Commit 97ad9af7 authored by Lisa Seeto's avatar Lisa Seeto
Browse files

Bug 1778792: PDF.js does not have the presentation mode option in Firefox and IE



Added allowfullscreen attr to iframe for pdf

behatnotneeded

Change-Id: If21c2766225d5b7d86d2ebc019fefa039e787d3d
Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
parent 0133c034
......@@ -73,7 +73,7 @@ class PluginBlocktypePdf extends MaharaCoreBlocktype {
else if ($language == 'en') {
$language = 'en-GB';
}
$result = '<iframe src="' . $urlbase . 'artefact/file/blocktype/pdf/viewer.php?editing=' . $editing . '&ingroup=' . !empty($group) . '&file=' . $artefactid . '&lang=' . $language . '&view=' . $instance->get('view')
$result = '<iframe allowfullscreen src="' . $urlbase . 'artefact/file/blocktype/pdf/viewer.php?editing=' . $editing . '&ingroup=' . !empty($group) . '&file=' . $artefactid . '&lang=' . $language . '&view=' . $instance->get('view')
. ($versioning ? '&versioning=true' : '')
. '" class="pdfiframe"></iframe>';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment