Hello everybody.
I searched for similar problems but I didn’t manage to reach a conclusive solution.
My problem is that CKeditor (ver. 4.3) strips from my YouTube embeds the “allowfullscreen” attribute upon saving. I have to re-edit the node, add by hand the attribute and re-save. If I edit again, the same thing happens. The “allowfullscreen” attribute gets stripped.
Here is an example. The original embed code

<iframe width="640" height="480" src="//www.youtube.com/embed/nTG1Alri6v0?rel=0" frameborder="0" allowfullscreen></iframe>

after saving becomes

<p><iframe frameborder="0" height="480" src="//www.youtube.com/embed/nTG1Alri6v0?rel=0" width="640"></iframe></p>

I paste the embed code as full html, and the profile has this parameters:

Convert URLs into links
Convert line breaks into HTML (i.e.
and

)
Correct faulty and chopped off HTML

The order is the order you see them listed.

Can anyone help with this?
Thank you very much.

Comments

munkiepus’s picture

There's a few reasons this could be happening,

Did you try adding a value to it? ie
allowfullscreen="1"

Is the tag allowed in drupal?
to test go here on your site /admin/config/content/formats/full_html un-tick the "Limit allowed HTML tags" checkbox and press "Save configuration".

There's some documentation on how to add/modify filters it here, https://www.drupal.org/documentation/modules/filter

If not drupal stripping it then it could be stripped out by ckeditor in which case you'll need to allow that tag see here: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent

vagelis-prokopiou’s picture

Thanx for the reply.
Your first suggestion already applies. The "Limit allowed HTML tags" is unchecked.
Also, I made it work without providing a value.
What I did was try to mess around with the CKeditor. I installed the latest version, didn't manage to get it working, played around with the settings and reverted back to the 4.3 version. I suppose it is a setting because now it works. For example I disabled the "Advanced content filter". Maybe this fixed the problem. I also enabled some of the plugins. For future reference, if anybody has the same problem I suggest playing with the Ckeditor settings.