Title: Using wp_editor in plugin
Last modified: August 21, 2016

---

# Using wp_editor in plugin

 *  [mav_santana](https://wordpress.org/support/users/mav_santana/)
 * (@mav_santana)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/using-wp_editor-in-plugin/)
 * I am trying to use wp_editor in html5-musci-play plugin where I have a plugin.
   php file which initiates all the stuff related to the plugin. I have add-song.
   php file, update-song.php file which are plain html files with layout and button
   update functions. There is manage-song.php function which does bulk of the work.
   If I want to update a song, it first fetches data from DB, then render the update
   or add file according to selection with the data from select query.
    I am intializing
   the wp_editor(content, id, settings) after the html is rendered. Now here are
   the problems I am facing with which I’d need help
 * 1) the editor and media container are broken meaning they are misaligned
 * 2) when I try to post content, it behave wierd ajax wise, sometimes I have to
   do double click on update or add to push the data, sometimes it puts in the wierd
   data-mce-bogus=1 thingy…..simply put it’s screwed up.
 * If i do the same with a non editorial simple textarea, it work perfectly.
 * Can anyone help with the solution? All my code is on my local and not on a server.

The topic ‘Using wp_editor in plugin’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mav_santana](https://wordpress.org/support/users/mav_santana/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/using-wp_editor-in-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
