iziModal
iziModal copied to clipboard
Any way to add attributes to iframe i.e. allowfullscreen?
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?
+1
+1
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');
}