Whilst this work around should work, it will always be problematic to try and make a wysiwig editor like this do what you want with HTML like that.
You may find that you are far better off just creating a new page type with a template, and simply embed the HTML in the template. Certainly if you are still having trouble with this, you will find that this method is far quicker, and more stable.
Aaron