You have got a Joomla problem. You have got some code but it won't stay. It gets erased after pressing save. I have an easy fix (so far).
1) In the backend Joomla! login as Administrator, select Content - Article Manager. Then, click the Parameters button.- Scroll down on the dialog box until you see the "Filtering Options." Select Author.
- Select "whitelist" for Filter Type.
- Press "Save."
2) Login the backend as Administrator, locate the current editors setup or configuration, turn off code clean-up and HTML cleanup and removal options.