title: How to get content from CK Editor?
body: <p>I need to get content from CK Editor to put it in JQuery.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> 
      &lt;form action="php/showcomments.php" method="post" onsubmit="return false;" &gt;
      &lt;div class="text-cmt"&gt;
       &lt;input id="tittle" name="tittle" type="text" placeholder="Comment Title" id="comm" required/&gt;
      &lt;/div&gt;
      &lt;div class="text-cmt"&gt;
       &lt;textarea id="msg"  &gt;&lt;/textarea&gt;
   
      &lt;/div&gt;
      &lt;div class="text-cmt"&gt;
       &lt;input name="send"  type="submit" value="send"&gt;
      &lt;/div&gt;
      &lt;/form&gt;
       &lt;script&gt;
          CKEDITOR.replace( 'msg' );
      &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  $(document).ready(function(){
   var g_id = "&lt;?= $id; ?&gt;";
   var u_id = "&lt;?= userid; ?&gt;";
   
    //  var comm = tinyMCE.editor.getContent();
   //tinyMCE.get('editor').getContent()
     $("form").submit(function(){
      var comm =  $("#tittle").val();
       $.ajax({
        url: 'php/showcomments.php', // form action url
        type: 'POST', // form submit method get/post
        data: {tittle: $("#tittle").val(),comm: comm, g_id: g_id,  u_id: u_id },
        dataType: 'html',
     success: function(data)
     {
      alert(data);
        },
    });
      });
  });
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>