From 19cfa99d00b6997a0efd1df927b60f877703a8e6 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Mon, 16 Jul 2018 12:22:20 +0200 Subject: [PATCH] MOBILE-2500 format-text: Allow full screen in embedded Youtube videos --- src/directives/format-text.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/format-text.ts b/src/directives/format-text.ts index 5277edef1..acaed8032 100644 --- a/src/directives/format-text.ts +++ b/src/directives/format-text.ts @@ -455,6 +455,7 @@ export class CoreFormatTextDirective implements OnChanges { iframe.id = video.id; iframe.src = 'https://www.youtube.com/embed/' + youtubeId; iframe.setAttribute('frameborder', '0'); + iframe.setAttribute('allowfullscreen', '1'); iframe.width = '100%'; iframe.height = '300';