Joomla JCE Editor doesn't work with Sourcerer and similar plugins that allow placing PHP and other code inside articles. The code can be added and saved in JCE Code tab, but as soon as the view is changed to Editor, all or part of the code is stripped out.
- Go to Components > JCE Editor > Edit Profiles > Default (or whatever profile you are using)
- Editor Parameters > Advanced
- In Code Blocks section select Yes next to all types of code you want to leave intact.
- In some cases, you may have to enable the experimental Protect Shortcode option.
As per JCE warning, enabling these options could be a security risk, so make sure this JCE Editor profile is only accessible to trusted users (Setup > Assignment > User Group).
JCE Editor 2.9