title: TinyMCE insert image - browse button does nothing when clicked
body: <p>I'm using the tinyMCE editor, and I've included the insert image button on the toolbar, but when I click the browse button nothing happens! I just get this error "TypeError: p is undefined"</p>
  
  <p>here's the configuration file for tinyMCE:</p>
  
  <pre><code>tinyMCE_GZ.init({
      // plugins: 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',
      themes: 'simple,advanced,searchreplace',
      languages: 'en',
      disk_cache: true,
      debug: false
  });
  
  tinyMCE.init({
      // General options
      mode: "textareas",
      theme: "advanced",
      skin: "o2k7",
      plugins: "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
      // Theme options
      //theme_advanced_buttons1: "newdocument,template,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,undo,redo,|,image,media,|,forecolor,backcolor,|,print",
      theme_advanced_buttons1: "bold,italic,underline,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,forecolor,|,image,media",
      theme_advanced_toolbar_location: "top",
      theme_advanced_toolbar_align: "left",
      theme_advanced_statusbar_location: "bottom",
      theme_advanced_resizing: true,
  
      file_browser_callback: "openBrowser",
  
  
      // Skin options
      skin: "o2k7",
      //skin_variant: "Blue",
      content_css: "../../Scripts/tiny_mce/themes/simple/skins/o2k7/content.css",
  
      // Drop lists for link/image/media/template dialogs
      template_external_list_url: "js/template_list.js",
      external_link_list_url: "js/link_list.js",
      external_image_list_url: "js/image_list.js",
      media_external_list_url: "js/media_list.js",
  
      // Replace values for the template plugin
      template_replace_values: {
          username: "Some User",
          staffid: "991234"
      },
  
      //To prevent having new paragraph each line
      force_br_newlines: true,
      force_p_newlines: false,
      forced_root_block: '', // Needed for 3.x
  
      setup: function (ed) {
          ed.onActivate.add(function (ed) {
              cursorRange = ed.selection.getRng();
          });
  
          ed.onKeyUp.add(function (ed, e) {
              //To Update cursor location when arrows, PgUp , PgDwn , Home &amp; End keys are pressed
              if (e.keyCode &gt;= 33 &amp;&amp; e.keyCode &lt;= 40) {
                  cursorRange = ed.selection.getRng();
              }
          });
  
          ed.onInit.add(function (ed) {
              ed.focus();
              cursorRange = ed.selection.getRng();
          });
  
          ed.onActivate.add(function (ed) {
              ed.focus();
              cursorRange = ed.selection.getRng();
          });
  
          ed.onClick.add(function (ed, e) {
              cursorRange = ed.selection.getRng();
          });
      },
  
  
      theme_advanced_statusbar_location: "none"
  
  });
  </code></pre>
  
  <p>How can I enable it?</p>
  
  <p>Thanks.</p>