Title: javascript insert editor content issue
Last modified: August 20, 2016

---

# javascript insert editor content issue

 *  Resolved [Dale Sattler](https://wordpress.org/support/users/noponies/)
 * (@noponies)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/javascript-insert-editor-content-issue/)
 * I’m trying to create a metabox that inserts html into the editor when a button
   is clicked.
 * I’ve been trying to use window.send_to_editor, but this seems to only fire when
   the thickbox media uploader is present. I’m not uploading any media files, rather
   just wanting to insert a shortcode derived from my metaboxes fields.
 * is there another method to insert content into the editor?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Dale Sattler](https://wordpress.org/support/users/noponies/)
 * (@noponies)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/javascript-insert-editor-content-issue/#post-2527668)
 * To answer my own question,
 * `send_to_editor(html);` works fine.

Viewing 1 replies (of 1 total)

The topic ‘javascript insert editor content issue’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Dale Sattler](https://wordpress.org/support/users/noponies/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/javascript-insert-editor-content-issue/#post-2527668)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
