title: How to get Text Typed on CkEditor
body: <p>I´m trying to get typed text on ckeditor (textarea), but I have some trouble:</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="ckeditor/adapters/jquery.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $('#editor').ckeditor();
  
  
      var editor = $('#editor').ckeditorGet(); 
  
      var data = $('#editor').val(); 
      window.alert(data);
      window.alert(CKEDITOR.instances['editor'].getData());
  
  });
  &lt;/script&gt;
  
      &lt;body&gt;
  
  
  &lt;form method="post"&gt;
      &lt;textarea  name="editor" id="editor"&gt;&lt;/textarea&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The results on two alerts are empty. What i´m doing wrong?</p>