title: Getting instance of a jQuery plugin
body: <p>I'm using <a href="http://www.sceditor.com/" rel="nofollow">SCEditor</a> and am loading it as such:</p>
  
  <pre><code>$(document).ready(function() {
  
      // Create var to store emoticons
      var emoticons = false;
  
      $.getJSON('../../images/emoticons/default/emoticons.json')
      .done(function(response) {
          emoticons = response;
      })
      .always(function() {
          // always initialize sceditor
          $(".sceditor").sceditor({
              // Options here...
          });
      });
  
  })
  </code></pre>
  
  <p>Now, I'm wondering how I go about getting the <code>instance</code> of this plugin so I can later pass it in if I want to reference it via a user action on the page.</p>
  
  <p>For example, they have an <a href="http://www.sceditor.com/api/" rel="nofollow">API</a> of which, what I would like to do is be able to get the <em>value</em> of the editor when the user clicks a preview button, it appears you can do that with <a href="http://www.sceditor.com/api/sceditor/val/" rel="nofollow">this method</a>.</p>
  
  <p>My problem is, I'm not sure how I go about referencing the instance created?</p>
  
  <p>I know how I could get it if I was running the code on the same request of when it was created, but not afterwards via a user action.</p>