Got trouble to embed Iframe in content field

Hi everyone,

I got a trouble when I try to embed and Iframe in the contend field of a page.

The iframe code was auto deleted after I chosen OK. I don’t know why.

Can you help to explain me what happened and how to embed Iframe into a Silverstripe page ?

Thank you so much!

Iframes aren’t allowed by default. You’ll need to update the extended_valid_elements option for the WYSIWYG field. These docs show how to do that, assuming you have access to the codebase.

1 Like

My current configuration seems has a different order as the docs. I changed iframe config as same as the docs then it worked!
Thank you @GuySartorelli so much!