• 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.