Title: Issue using wp_editor
Last modified: August 21, 2016

---

# Issue using wp_editor

 *  [bbesthorne](https://wordpress.org/support/users/bbesthorne/)
 * (@bbesthorne)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/issue-using-wp_editor/)
 * I am attempting to use wp_editor in a custom plugin that allows me to edit fields
   in the database directly. The editor comes up except I can’t switch to the visual
   tab. I get the following JS error: Uncaught ReferenceError: switchEditors is 
   not defined. Are there any other libraries I need to enqueue?
 *     ```
       <?php
       $settings = array(
       'teeny' => true,
       'textarea_rows' => 8,
       'tabindex' => 1,							  'media_buttons' => false
       );
       wp_editor(sanitize_text_field($row[$i]), 'col' .$i, $settings)
       ?>
       ```
   
 * I have replaced all the core code files with fresh versions and disabled/deleted
   all plugins. This error is happening on all browsers. I have tried to set define(‘
   CONCATENATE_SCRIPTS’, false ); in wp-config.php and tried the default theme (
   which I refreshed from a new download). Any help would be greatly appreciated!!

The topic ‘Issue using wp_editor’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [bbesthorne](https://wordpress.org/support/users/bbesthorne/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/issue-using-wp_editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
