title: Bad timing issue, Telerik RadEditor control's client side events and jquery's on page ready event
body: <p>I have an object that I initialize, and I pass in a parameter that is a radeditor control.</p>
  
  <p>I think set some client side events of the radeditor using my object like this:</p>
  
  <pre><code> &lt;telerik:RadEditor ...
     OnClientLoad="My_Object.SomeFunction" ... /&gt;
  </code></pre>
  
  <p>The problem is, my object isn't wired up correctly unless I put it in jquery's ready function, but that seems to fire AFTER the RadEditor event, and as a result I get the error message:</p>
  
  <pre><code>My_Object is undefined
  </code></pre>
  
  <p>I am doing this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  
   $(document).ready(function () {
  
    editor = $find("&lt;%=RadEditor1.ClientID %&gt;");
  
    My_Object = new MYOBJECT(editor);
  
   });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The call to <code>$find("&lt;%=RadEditor1.ClientID %&gt;");</code> is always null if I try and set it outside of ready function.</p>
  
  <p>But when I put it inside the ready function, <code>My_Object</code> is being instantiated too late and when I set the client side events on the RadEditor control it says the method is null.</p>
  
  <p>How can I solve this timing issue?</p>