I entered a ticket on animated gifs (
https://stackideas.com/forums/issues-uploading-gif-animation). What I wanted to do was add an animated gif to the post, but also have it not play until the user clicked on it.
After research here and elsewhere, I loaded a static version of the gif using the JCE select image, which produced this HTML:
<img src="XXXX">
Using the JCE code editor, I wrapped it with the following:
<a href="#" onClick="Animation=window.open('YYYY', 'Animation', width='700', height='700');return false;>
<img src="YYYY"> </a>
where YYYY is a reference to the animated gif.
It all worked in preview, but when I submitted the post, the <a> got changed to <a href="#">
Then I edited the post, replacing the custom <a> with the one above, and updated it. This time, it preserved the custom HTML, and it all works fine.
So I don't need help on this, but I'm reporting the problem that the custom HTML is changed on post submit.