title: Passing variable from tinymce to jbimages
body: <p>I'm trying to pass variable from tinyMCE to jbimages. What i have is:</p>
  
  <pre><code>tinymceInstance = tinymce.init({
      selector: "textarea#desc",
      theme: "modern",
      skin: "light",
      relative_urls: false,
      width: 800,
      height: 300,
      relative_urls: false,
      plugins: [
           "link image preview hr anchor pagebreak ",
           "searchreplace wordcount visualblocks visualchars code nonbreaking",
           "directionality textcolor jbimages"
     ],
     content_css: "css/content.css",
     toolbar: "insertfile undo redo | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image jbimages | print preview media fullpage | forecolor | spellchecker", 
      myVariable: 12345
   });
  </code></pre>
  
  <p>jbimages is a plugin to upload images. In config.php file in jbimages
  I have the following code that is executed:</p>
  
  <pre><code>$config['img_path'] = '/images'; // Relative to domain name
  $config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
  </code></pre>
  
  <p>How to retrieve variable myVariable from tinyMCE and use it in config.php. I tried a few things that I found on the web, but nothing seems to work.
  Thanks in advance.</p>