iziModal icon indicating copy to clipboard operation
iziModal copied to clipboard

Any way to add attributes to iframe i.e. allowfullscreen?

Open pavsid opened this issue 6 years ago • 3 comments

Hi, I am opening a YouTube video in an iframe using your modal plugin, however the "open in full screen" option is disabled on the YouTube video, and I think due to the iframe created by iziModal not having the allowfullscreen="" attribute.

Is there any way to add this?

pavsid avatar May 02 '18 11:05 pavsid

+1

rodrigorrch avatar Jun 26 '18 19:06 rodrigorrch

+1

lAndresul avatar Feb 12 '19 16:02 lAndresul

Use the onOpening callback to add the allowfullscreen attribute to the iframe. Might be a better way but this works for me...

onOpening: function () {
	$('#modal-video').find('iframe:first').attr('allowfullscreen', 'allowfullscreen');
}

pavsid avatar Feb 15 '19 07:02 pavsid