MOBILE-2500 format-text: Allow full screen in embedded Youtube videos

main
Albert Gasset 2018-07-16 12:22:20 +02:00
parent 50637d0377
commit 19cfa99d00
1 changed files with 1 additions and 0 deletions

View File

@ -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';