title: Setting max length in summernote
body: <p>How can I apply a maxlength to Summernote?  Applying a maxlength to the textarea does not work here.</p>
  
  <p><a href="https://github.com/summernote/summernote" rel="noreferrer">https://github.com/summernote/summernote</a></p>
  
  <pre><code>$("#textareaid").summernote({
        toolbar:[
          ['style', ['style']],
          ['font', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']],
          ['fontname', ['fontname']],     
          ['fontsize', ['fontsize']], 
          ['color', ['color']],
          ['para', ['ul', 'ol', 'paragraph']],
          ['height', ['height']],
          ['table', ['table']],
          ['insert', ['link', 'picture', 'video', 'hr']],
          ['view', ['fullscreen', 'codeview']],
          ['help', ['help']]      
        ],                  
        height: 250,  
        focus: true 
  });
  
  $("#summernotediv").code("");           
  $('.note-help-dialog .row-fluid &gt;p').hide();    
  $('.note-editable').css('overflow','auto'); 
  $('.note-image-input').prev('h5').remove();
  $('.note-image-input').remove();
  </code></pre>