fonini / ckeditor-youtube-plugin

CKEditor Plugin to embed Youtube videos.
https://fonini.github.io/youtube-plugin-for-ckeditor-4.html
Do What The F*ck You Want To Public License
51 stars 61 forks source link

Make sure paramAutoplay is enabled before injecting it into the iframe html code for `allow="autoplay;"` #79

Closed chrispelzer closed 5 years ago

chrispelzer commented 5 years ago

If the Autoplay is not enabled the resulting html will be

<iframe allow=";">

with this PR it will not inject the allow unless there is the autoplay param to put in.

fonini commented 5 years ago

Thanks!