Title: I cannot enter code
Last modified: August 18, 2016

---

# I cannot enter code

 *  [richimpulse](https://wordpress.org/support/users/richimpulse/)
 * (@richimpulse)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/i-cannot-enter-code/)
 * Hey people, first post here.
 * I have just started using wordpress and everything has been running fine up until
   this morning when i added the NextGEN gallery.
 * The installation went fine with no problems at all, the problem i am having though
   is getting the gallery to display in a new page.
 * I go to create a new page and i wish to use the tag `[album=id,extend]` to display
   my gallery
 * Now the problem is that when i click on the code tab nothing happens, i can only
   enter the code in the visual content tab so obviously when i publish the page
   it just displays a blank page with the above code in it instead of showing a 
   gallery.
 * Up until installing NextGen i had no know issues with this, and i’m very confused
   at why this has happened.
 * If anyone can help with this issue i’d be very greatful.
 * Thanks for your time.
 * Rich

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [richimpulse](https://wordpress.org/support/users/richimpulse/)
 * (@richimpulse)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/i-cannot-enter-code/#post-658871)
 * Problem solved.
 * I just unchecked “Use the visual editor when writing” in my profile.
 * Rich
 *  [christykny](https://wordpress.org/support/users/christykny/)
 * (@christykny)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/i-cannot-enter-code/#post-659021)
 * I’m having a similar problem and I don’t consider “turn off visual editor” to
   be a resolution. The person whose site I’m helping with needs to have the visual
   editor.
 * But it’s a little more strange than Rich’s problem. We did nothing with the site
   for several days and all was fine when we let it be. When she signed back in 
   today, she noticed that the visual editor had changed! How odd is that considering
   we made not changes. It now shows drop-down for formatting text plus font color,
   underline and others. These were not showing before (and one of my working versions
   of 2.2.3 does not show them either).
 * Nothing happens when I click the ‘code’ tab. It won’t switch over. And when you
   enter and save a change using visual editor, it saves but when you check the 
   Page and editor, nothing has changed.
 * * Deactivated all plugins – **no change**.
    * Unchecked, Rechecked Use Visual
   Editor – **no change** * Was going to re-upload includes folder but realized 
   she needed to upgrade from 2.2.1 to 2.2.3 so went ahead and did the upgrade –**
   no change**. (does not want to go to 2.3 due to change in category tables)
 * ANY HELP?
 * TIA
 * Christy
 * Update: OK. Still don’t have answer, but using Firebug, I see a lot of wp-admin.
   css errors but also a few lines of the following error:
 * switchEditors is not defined
    onclick(click clientX=0, clientY=0)
 * That definitely seems like it would cause problem of not being able to switch
   to code, but I don’t know how to resolve it.
 * ???
 *  [Jeremy Tarpley](https://wordpress.org/support/users/jeremytarpley/)
 * (@jeremytarpley)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/i-cannot-enter-code/#post-659030)
 * Christy, I found a temporary fix:
    1.  open wp-admin/admin-header.php with a text editor
    2. add the following somewhere inside the `<head>` tag:
 * `<script type='text/javascript' src='<?php bloginfo('url'); ?>/wp-includes/js/
   tinymce/plugins/wordpress/editor_plugin.js'></script>`
 * This is a total hack, I am sure this is not the proper place to add javascript
   includes. wp-includes/script-loader.php appears to be the proper script to add
   this. I am hesitant to edit this file for several reasons. First, I have only
   been using wordpress for a week so I am not familiar with how it works under 
   the hood. script-loader.php looks to be a critical file used throughout WordPress
   so I didn’t want to break other things to fix this problem. Finally, I don’t 
   know what caused this to break. The editor worked this morning. I made several
   hours of changes to wordpress today before realizing that it was broken. I suspect
   a plugin may have caused this problem but who knows…
 * ——————————————————–
 * In case it is of use to someone, this is what I did to troubleshoot the problem(
   wordpress 2.3.2) :
 * When trying to edit any post (new or old), the **Code **tab did not work. When
   it was clicked, I noticed two javascript errors (using [firebug](https://addons.mozilla.org/en-US/firefox/addon/1843)).
   As mentioned in previous posts, the error is: _switchEditors is not defined onclick(
   click clientX=0, clientY=0)_
 * I searched for the text _switchEditors _in every file included in WordPress 2.3.2.
   It only refers to a javascript function in `wp-includes/js/tinymce/plugins/wordpress/
   editor_plugin.js`
 * Viewing source for wp-admin/post.php reveals that the file: editor_plugin.js 
   is not included in the <head> of the document. As a quick and dirty fix, I edited
   the header file for the posting pages: wp-admin/admin-header.php
 * Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘I cannot enter code’ is closed to new replies.

## Tags

 * [code tab](https://wordpress.org/support/topic-tag/code-tab/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Jeremy Tarpley](https://wordpress.org/support/users/jeremytarpley/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/i-cannot-enter-code/#post-659030)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
