refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 371 forks source link

onBlur with showPreview adds another textarea each time it's triggered #170

Closed acis closed 9 years ago

acis commented 9 years ago
$("#my-textarea").markdown({
    onShow: function(e){
      e.setContent(toMarkdown(e.$textarea.attr("data-value")));
    }, 
    onBlur: function(e){
         e.showPreview(); 
     }
  });