bind causing errors
<p>I'm noticing some errors that are occurring because of JQuery bind. What happens is that when I submit a form, bind causes a javascript error to occur when the page that uses it is not loaded. When I comment the bind section out, the error goes away.</p>

<p>Here are the relevant lines of code.</p>

<pre><code>  $('input').bind('click', function() {
    editor.post();
  });

  $("#submit").click(function () {
  ...
</code></pre>

<p>Is there a way to move the bind click function inside of the submit click function? If not, how can I stop this error from occurring?</p>

<hr>

<p>This is the error:</p>

<pre><code>editor is not defined
script.js
editor.post();
</code></pre>
