Title: send_to_editor Javascript function not there
Last modified: August 19, 2016

---

# send_to_editor Javascript function not there

 *  [thecardboardtypewriter](https://wordpress.org/support/users/thecardboardtypewriter/)
 * (@thecardboardtypewriter)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/)
 * I am at the end of my rope.
 * I’ve been scrolling through the forums and Googling my way around, trying to 
   find the answer.
 * Originally, I couldn’t enter text into the New Post body section (the title bar
   and notes sections were fine). I can only enter text if I disable the visual 
   editor (because that makes sense).
 * Now, I can’t insert photos. I uploaded them to the library. They show up. But
   next to them is the word “Show.” Clicking on it does nothing.
 * I tried uploading new media straight from my computer. I get the same “Show” 
   listing as the library.
 * Finally, I manually entered in the URL. Here, I actually get a box with options
   like positioning and captions. However, I have two problems. 1.) The image title
   isn’t accepted…it never goes from the red asterisk to a green check mark (no 
   matter what I write) and 2.) Clicking the “Insert Image” button does nothing.
   The page goes nowhere.
 * What can I do?
 * As a note: I just upgraded to 3.0. This is my first post so I can’t tell you 
   if I was having problems before. I deactivated all plug-ins and went to the default
   theme.
 * UPDATE: After viewing an error console and the source code, it seems my Insert
   Media page is missing a piece of Java Script called send_to_editor. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [thecardboardtypewriter](https://wordpress.org/support/users/thecardboardtypewriter/)
 * (@thecardboardtypewriter)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1548911)
 * Anyone?
 *  Thread Starter [thecardboardtypewriter](https://wordpress.org/support/users/thecardboardtypewriter/)
 * (@thecardboardtypewriter)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1548913)
 * The error console reads: “win.send_to_editor is not a function” when I press “
   Insert into Post.”
 *  Thread Starter [thecardboardtypewriter](https://wordpress.org/support/users/thecardboardtypewriter/)
 * (@thecardboardtypewriter)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1549179)
 * Hello? Hello? I re-installed everything, just like the sticky advised, and nothing
   has changed.
 * Should I just switch blogging hosts?
 *  [Conqueror](https://wordpress.org/support/users/conqueror/)
 * (@conqueror)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1549307)
 * Hi Alice.
    I had the same problem after upgrading to 3.0.1 and i finally fixed
   it! Seems Opera 10.10 has a bug (fixed in modern versions) that means **createContextualFragment()**(
   non-standard Mozilla’s extension to the Range object) is unreliable sometimes.
   Huh, yet another incompatibility issue between Opera and Tiny MCE. But i patched**
   tiny_mce.js** and now it works well. Download unpacked script from [SourceForge](http://sunet.dl.sourceforge.net/project/tinymce/TinyMCE/3.2.7/tinymce_3_2_7.zip)
   and replace string `r.insertNode(t.getRng().createContextualFragment(h));` with
 *     ```
       /* Opera-specific bug workaround: createContextualFragment() loses child nodes */
       if (opera && opera.version() == '10.10')
       {
       	var wa_frag = t.getRng().createContextualFragment(h);
       	var wa_stor = document.createElement('div');
       	wa_stor.innerHTML = h;
       	for (var curr, i=0; curr = wa_stor.childNodes[i]; i++)
       		wa_frag.appendChild(curr.cloneNode(true));
       	r.insertNode(wa_frag);
       	opera.postError('Range.createContextualFragment() fix applied. See tiny_mce.js for details');
       }
       else r.insertNode(t.getRng().createContextualFragment(h));
       ```
   
 * If SCRIPT_DEBUG is not defined, then wp-tinymce.js.gz also need to be patched
   in a similar way.
 *  [ciordia9](https://wordpress.org/support/users/ciordia9/)
 * (@ciordia9)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1549327)
 * I’ve got the same problem. It seems to be a relic of the same problem from 2 
   years ago and I’m not sure what is triggering the edge case.
 * 3.0.1 site
    upload media, check insert media, blank screen of death — win.send_to_editor
   is not a function
 * Deactivated plugins, cleared cache, same behavior.
    * Safari * FF * Chrome
 * Relevant but not solved Trac link for devs: [http://core.trac.wordpress.org/ticket/8806](http://core.trac.wordpress.org/ticket/8806)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘send_to_editor Javascript function not there’ is closed to new replies.

## Tags

 * [not a function](https://wordpress.org/support/topic-tag/not-a-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [ciordia9](https://wordpress.org/support/users/ciordia9/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/so-many-posting-problems-help/#post-1549327)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
