Here is the challenge at hand - I am looking to restrict input to no more than N characters in a contenteditable div using either native JS or JQuery. For example, if a user inputs 10 symbols, they should not be able to input any more and can only clear the input.
<div contenteditable="true" placeholder="Message Text" class="editable ng-valid ng-valid-maxlength ng-dirty ng-valid-parse ng-touched"></div>