I have a problem with adding an iframe to a paragraph.

In Text formats and editors, I have checked "Limit allowed HTML-tags" and then added <iframe> to allowed tags.

But when adding an iframe tag with attributes to the CKEditor, all attributes are removed and only the tag is remaining.

When I uncheck "Limit allowed HTML-tags", the iframe is shown as expected but I do want to restrict HTML tags.

Is this a bug or am I adding the tag wrong?

Allowed tags


iframe stripped


If this is your output:


It's likely you need to specify the allowed attributes as well under Limit allowed HTML-tags. e.g.

<iframe width height src etc>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.