function TextBox(options) {
  this.container = options.container;

  this.parent = document.createElement('div');

  this.content = document.createElement('div');

  this.parent.appendChild(this.content);

  domAttr(this.content, 'contentEditable', 'true');

  this.keyHandler = options.keyHandler || function() {};
  this.resizeHandler = options.resizeHandler || function() {};

  this.autoResize = bind(this.autoResize, this);
}
/**
 * Initializes a container for a content editable div.
 *
 * Structure:
 *
 * container
 *   parent
 *     content
 *     handle
 *
 * @param {object} options
 * @param {DOMElement} options.container The DOM element to append the contentContainer to
 * @param {Function} options.keyHandler Handler for key events
 * @param {Function} options.resizeHandler Handler for resize events
 */
Initializes a container for a content editable div.
Structure.

container
parent
content
handle

@param {object} options
@param {DOMElement} options.container The DOM element to append the contentContainer to
@param {Function} options.keyHandler Handler for key events
@param {Function} options.resizeHandler Handler for resize events
Initializes a container for a content editable div . Structure . container parent content handle @param { object } options @param { DOMElement } options . container The DOM element to append the contentContainer to @param { Function } options . keyHandler Handler for key events @param { Function } options . resizeHandler Handler for resize events
function TextBox(options) {
  this.container = options.container;
  this.parent = document.createElement('div');
  this.content = document.createElement('div');
  this.parent.appendChild(this.content);
  domAttr(this.content, 'contentEditable', 'true');
  this.keyHandler = options.keyHandler || function() {};
  this.resizeHandler = options.resizeHandler || function() {};
  this.autoResize = bind(this.autoResize, this);
}
function TextBox ( options ) { this . container = options . container ; this . parent = document . createElement ( 'div' ) ; this . content = document . createElement ( 'div' ) ; this . parent . appendChild ( this . content ) ; domAttr ( this . content , 'contentEditable' , 'true' ) ; this . keyHandler = options . keyHandler || function ( ) { } ; this . resizeHandler = options . resizeHandler || function ( ) { } ; this . autoResize = bind ( this . autoResize , this ) ; }
Initializes a container for a content editable div.
Initializes a container for a content editable div .