title: how to save data from medium editor using javascript/jquery and php
body: <p>I'm developing a blog and I want to add medium editor in taking my content and for saving. I have been searching the internet and I have tried on my own using JavaScript but its not given me anything at all.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="editable" id="articles" data-field-id="content"&gt;
  &lt;button id="publish_article"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>
  JS
  </p>
  
  <pre><code>var editor = new MediumEditor('.editable',{
                                  placeholder:{
                                    text:'Type Your Article',
                                    hideOnClick:true
                                  })
  $('#publish_article').click(function(){
        $('.editable').bind('input propertychange, function(){
          var x=$('#article'+$(this).attr("data-field-id")).val($(this).html());});});
  </code></pre>