Title: &quot;injects&quot; code when toggle between html &amp; visual editor
Last modified: August 20, 2016

---

# "injects" code when toggle between html & visual editor

 *  [Johmai](https://wordpress.org/support/users/johmai/)
 * (@johmai)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/)
 * Whenever I switch from html mode to visual mode while editing posts I notice 
   this:
    1) Javascript line is inserted at the bottom of each post. I’d like to
   know what the code is because it sends information off-shore. Interestingly, 
   if I disbale Javascript in my browser the code cannot send. Maybe experts know
   what this means? I made sure my version of Java is up to date and deleted old
   version etc. Please note, I’m NOT confusing Java with JavaScript – both are required.
   2) a mere switch from text to html mode _changes_ the post enough that WP prompts
   me to “stay on the page” or press “update” first. 3) custom html is either not
   saved or renders inaccurately in browser. I have also read several other posts
   about this but nothing seems to apply to this case. I disabled plugins, cleared
   browser cache compulsively. Also experimented with tinyMCE alternatives but these
   symptoms persist. I’m now also unable to make backups and the developer whose
   plugin had afforded me this luxury rarely utters a comprehensible phrase. Subsequent
   reinstalls do not offer relief. If you know a protocol to follow or better place
   to be looking for it god bless you today.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/?output_format=md)
[1](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/?output_format=md)
2

 *  Thread Starter [Johmai](https://wordpress.org/support/users/johmai/)
 * (@johmai)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/page/2/#post-2959546)
 * Hi kmessinger, I’ve had several cups on this one.
 * > Please note, I’m NOT confusing Java with JavaScript – both are required.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 8 months ago](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/page/2/#post-2959547)
 * “Life’s too short to drink cheap beer”
 * Keith, anytime you reply with _anything_ it’s automatically good. Thanks for 
   all the help you continue to provide. 😀
 * > What if you’re right – what do I do with the stuff on WAMP then?
 * Well… WAMP on your PC is always sacrificial, meaning if something goes awry but
   burn it to the ground and start again. Something’s gone wrong with your WAMP 
   install so I suggest you wipe it completely out and try again.
 * Save any work you’ve done in plugins or themes first and start over again.
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/page/2/#post-2959548)
 * [I’ve seen this before](http://wordpress.org/support/topic/how-to-recognise-a-script-injection/page/2?replies=43#post-3064765):
 *     ```
       RewriteEngine on
       # Options +FollowSymlinks
       RewriteCond %{HTTP_REFERER} in.admedia\.com [NC]
       RewriteRule .* - [F]
       ```
   
 * I am trying to help someone sort out a similar Javascript injection issue [on another thread](http://wordpress.org/support/topic/how-to-recognise-a-script-injection?replies=43)
   and that identical .htaccess is showing on his local server.
 * We have no solutions yet. In fact it is pretty maddening, but you can see what
   we’ve tried. I don’t know if my guy is using WAMP, but I kinda hope so 🙂

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/?output_format=md)
[1](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/?output_format=md)
2

The topic ‘"injects" code when toggle between html & visual editor’ is closed to
new replies.

## Tags

 * [text editor](https://wordpress.org/support/topic-tag/text-editor/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 18 replies
 * 6 participants
 * Last reply from: [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/injects-code-when-toggle-between-html-visual-editor/page/2/#post-2959548)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
