Merge pull request #1418 from albertgasset/MOBILE-2500

MOBILE-2500 format-text: Allow full screen in embedded Youtube videos
main
Juan Leyva 2018-07-24 12:01:15 +02:00 committed by GitHub
commit fd281c4363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.id = video.id;
iframe.src = 'https://www.youtube.com/embed/' + youtubeId; iframe.src = 'https://www.youtube.com/embed/' + youtubeId;
iframe.setAttribute('frameborder', '0'); iframe.setAttribute('frameborder', '0');
iframe.setAttribute('allowfullscreen', '1');
iframe.width = '100%'; iframe.width = '100%';
iframe.height = '300'; iframe.height = '300';