Fixes #3297 - Videos embedded in Knowledge Base do not allow full screen mode

This commit is contained in:
Mantas 2020-11-23 19:12:53 +02:00 committed by Thorsten Eckel
parent f851b58062
commit 024000b98a
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ class App.KnowledgeBaseReaderController extends App.Controller
return match unless url return match unless url
"<div class='videoWrapper'><iframe id='#{settings.provider}#{settings.id}' type='text/html' src='#{url}' frameborder='0'></iframe></div>" "<div class='videoWrapper'><iframe allowfullscreen id='#{settings.provider}#{settings.id}' type='text/html' src='#{url}' frameborder='0'></iframe></div>"
renderAttachments: (attachments) -> renderAttachments: (attachments) ->
@answerAttachments.html App.view('generic/attachments')( @answerAttachments.html App.view('generic/attachments')(

View file

@ -44,7 +44,7 @@ module KnowledgeBaseRichTextHelper
return match if !url return match if !url
"<div class='videoWrapper'><iframe id='#{settings[:provider]}#{settings[:id]}' type='text/html' src='#{url}' frameborder='0'></iframe></div>" "<div class='videoWrapper'><iframe allowfullscreen id='#{settings[:provider]}#{settings[:id]}' type='text/html' src='#{url}' frameborder='0'></iframe></div>"
end end
end end
end end