ckeditor-youtube-plugin icon indicating copy to clipboard operation
ckeditor-youtube-plugin copied to clipboard

Remove the required aspect of the allowedContent iframe attributes

Open abogaart opened this issue 6 years ago • 1 comments

Hi,

Is it possible to remove the required aspect of the allowedContent attributes on the iframe element? Currently, I can't upgrade the plugin to the latest version as I would have to change all existing content in our repository (add an empty attribute allow).

I'm not sure if the code really requires these attributes to be required, or if simply having them specified without the ! is already good enough.

Thanks!

abogaart avatar Apr 11 '19 08:04 abogaart

The allowedContent rule requires the <iframe> element to have an allow attribute, but the plugin only adds this attribute if the paramAutoplay is true, meaning that if paramAutoplay is not true, the whole content will be stripped again.

abogaart avatar Jun 07 '22 12:06 abogaart