import React, { PropTypes, Component } from 'react' import { get } from 'lodash' import { RIETextArea } from 'riek' import Util from '../../Metamaps/Util' class MdTextArea extends RIETextArea { keyDown = (event) => { // we'll handle Enter on our own, thanks const ESC = 27 if (event.keyCode === ESC) { this.cancelEditing() } } renderNormalComponent = () => { const value = this.state.newValue || this.props.value // defaultProps MUST use dangerouslySetInnerHTML return } } class Desc extends Component { render = () => { const descHTML = (this.props.desc === '' && this.props.authorizedToEdit) ? '