Thread Starter
gond78
(@gond78)
sorry got the code wrong in my first post, this is what I put
<a href="TARGET URL GOES HERE"><img src="URL OF FIRST IMAGE GOES HERE" onmouseover="this.src='URL OF SECOND IMAGE GOES HERE'" onmouseout="this.src='URL OF FIRST IMAGE GOES HERE'" /></a>
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Why do you need to switch between the two tabs?
Thread Starter
gond78
(@gond78)
well for editing purpose, in visual mode as far as I know there is no way to set a mouse hover effect.
only by editing in text mode with the code I linked above you can set it up.
Once I have written my code I then switch back to visual mode to edit my content ( easier to do that way obviously) but if I edit any content then update my page, for no reason the mouse hover code I entered in text code is being deleted (I realized that because the mouse hover wasn’t working anymore so I went back to text mode to check and that is when I saw it wasn’t there anymore)
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
There has always been an issue with code being stripped out when you toggle between the two tabs. I think you’re supposed to Preview the changes instead.
Thread Starter
gond78
(@gond78)
when I preview the changes it works, but eventually I have to switch back to visual mode at some point in my editing and save the changes, that’s where the bug appears :S
Thread Starter
gond78
(@gond78)
as you said it’s a problem of code being stripped out when switching modes.
there is that apparently fixes the problem so I’ll give it a try
Thread Starter
gond78
(@gond78)
it worked! the code isn’t being stripped out anymore.