We ran into this twice recently when trying to add YouTube videos or other iFrame elements to our Joomla pages. The code cleaner removes the code from the page upon save, so the solution is to turn off the code cleaner.
- Go to plugins.
- Find the editor you are using (commonly TinyMCE).
- On the right side, change Clean code on load = No.
- Clean code on save = Never.
From there, your code should remain intact when you save allowing you to add YouTube or other iFrame elements to your Joomla pages.
