Sha256: b914e4933050f5bcacf3710321c62e19a95b0c897e8b756d51cdba24fbeecb68
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 Bytes
Contents
$(document).ready(function(){ if($(".editable")){ var editor = new MediumEditor('.editable',{ buttons: [ 'bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote', 'unorderedlist' ] }); $("#save-button").on("click", function(e){ if(editor.serialize()["element-0"].value.length <= 10){ e.preventDefault(); return false; } else { $("#description-field").val(editor.serialize()["element-0"].value); // e.preventDefault(); // return false; } }); } })
Version data entries
12 entries across 12 versions & 1 rubygems