If I understand correctly:
– You are using the “Incert/Edit video” button in TinyMCE to add the embed code that you copied from Youtube. (That opens a modal dialog with an area you can paste that code).
– After pasting it there and clicking OK, the rel attribute is removed?
Can you paste the exact code you are trying to embed in a comment here (surrounded by backticks)? I get <iframe width="560" height="315" src="https://www.youtube.com/embed/oNwOtvwbSt8" frameborder="0" allowfullscreen></iframe> when copying embed code from Youtube. Not sure where that rel attribute should be and why it has an seemingly invalid value of 0.
‘<iframe width=”853″ height=”640″ src=”https://www.youtube.com/embed/b7XnlhIDz1U?rel=0″ frameborder=”0″ allowfullscreen></iframe>’
When you save the post the code change in:
‘<iframe src=”//www.youtube.com/embed/b7XnlhIDz1U” width=”853″ height=”640″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe></center><center><img class=”alignright size-full wp-image-37″ src=”https://www.peopleinside.it/wpi15/wp-content/uploads/2014/01/MarcoBorla_piccola.png” alt=”MarcoBorla_piccola” width=”160″ height=”126″ />’
so miss the ?rel=0
Yes the button is what you say. I AM using Italian version but is that one.
Ah, I see what you mean now. It’s not attribute but a query arg with the same name as the HTML attribute π
This also happens in the TinyMCE demo: https://www.tinymce.com/docs/demo/basic-example/, not caused by TinyMCE Advanced or WordPress. I would suggest to open a ticket for TinyMCE on GitHub: https://github.com/tinymce/tinymce/issues.
I AM able to reproduce on the TinyMCE DEMO so Thanks. This issue should be resolved in TinyMCE
Issue is not resolved on my site. If TinyMice have updated and fixed the issue should this plugin update? Why I continue to see issue is still present?
The media plugin is actually part of WordPress. So when this is fixed upstream in TinyMCE, it will be updated in the next WordPress release.
UpStream? Media Plug In? Un sorry I don’t know of what we are talking… maybe my knowledge about this is low.
Just see in the Demo of TinyMice the issue seems resolved and on TinyMice topic on GitHub has been resolved and closed but issue continue to be in my website.
Thank you.
Sorry, meant to say that:
– This has nothing to do with the TinyMCE Advanced plugin.
– As it is resolved in TinyMCE (the demo on their site), it will be resolved in the next version of WordPress.