title: Passing event to callback function
body: <p>I am using the summernote api (<a href="http://summernote.org/#/deep-dive" rel="nofollow">http://summernote.org/#/deep-dive</a>), and using the callback for onkeyup as follows: </p>
  
  <pre><code>$('#summernote').summernote({
      height: 150,
      onkeyup: myFunction
  });
  </code></pre>
  
  <p>for the html:</p>
  
  <pre><code>&lt;textarea id="summernote"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>I defined myFunction as ...</p>
  
  <pre><code>var myFunction= function(e) {
      var num_chars = $(e.target).text().length
      console.log(num_chars);
  }
  </code></pre>
  
  <p>Now I would like to pass some parameters with .bind() to myFunction.
  When I do </p>
  
  <pre><code>onkeyup: myFuntion.bind(1,2)
  </code></pre>
  
  <p>$(this) or e.target does not work, this probably has to do with how params are shuffled around when use the .bind()</p>
  
  <p>How do I maintain e.target functionality and pass extra data to the function with bind?</p>
  
  <p>Any help would be appreciated.</p>