title: contenteditable single-line input
body: <p>For an application we're developing at the company where I work, we need an input that supports inserting emoticons inside our JS-based web app. We're currently using an input with the emoticon shortcodes (ie ':-)') and would like to switch to inserting actual, graphical images.</p>
  
  <p>Our original plan was to use a <code>contenteditable</code> <code>&lt;div&gt;</code>. We're using listeners for the paste event as well as the different key/mouse interactions to ensure no unwanted markup enters the contenteditable (we strip text out of its container tags and leave only image tags that we inserted ourselves).</p>
  
  <p>However, the problem right now is that the div resizes if you put in enough content (ie its height increases). We don't want this to happen, nor is it acceptable for the text to just be hidden (ie plain <code>overflow: hidden</code>). So:</p>
  
  <p><strong>Is there a way to make the contenteditable div behave like a single-line input?</strong></p>
  
  <p>I'd like it best if there is a relatively simple attribute/css property that I've missed that will do what I want, but if necessary CSS+JS suggestions will also be appreciated.</p>