title: How to constraint DraftJs editor input to single line?
body: <p>I want want to use DraftJs in Typescript to make two Editor components: one for an email subject and one for an email body.</p>
  
  <p><strong>My problem</strong>: Because an email subject can only be 1 line, I want to constrain the Editor component input for the subject to also be one line.</p>
  
  <p>I started by swallowing the enter command (split-block), but a user could simply paste multi-line text to get around that.</p>