I have 2 hysml wysiwyg editors on wordpress admin page. Both use the WP_EDITOR () function. The first one is hardcoded on the page:
<form name="form1" id="form1" method="post" action="" style="display:block;"> <p> <?php wp_editor( 'CONTENT WILL APPEAR HERE!', 'addsometxt', array('textarea_name'=>'create_txt','textarea_rows'=>10,'wpautop'=>false)); ?> </p> <p> <input name="save" type="submit" class="button-primary" id="save" style="margin:5px;" value="Save Input" /></p> </form>
The second is dynamically generated using the PHP function using an AJAX call (wp_ajax_ and $ .post). I am testing an ajax call and know that it works; therefore, for brevity, here's the php function:
<?php function display_editor2() { // grab data from database (data_from_db) and display in editor wp_editor( $row->data_from_db, 'editsometxt', array('textarea_name'=>'edit_txt','textarea_rows'=>10,'wpautop'=>false)); } ?>
The problem is that even when displaying a second editor; it skips all the toolbar buttons. See the image below for an illustration. Does anyone know who to fix this?

source share