Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pavsid opened this issue May 2, 2018 · 3 comments
Open

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

pavsid opened this issue May 2, 2018 · 3 comments

Comments

@pavsid
Copy link

pavsid commented May 2, 2018

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?

@rodrigorrch
Copy link

+1

1 similar comment
@lAndresul
Copy link

lAndresul commented Feb 12, 2019

+1

@pavsid
Copy link
Author

pavsid commented Feb 15, 2019

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');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants