re-add CM react

This commit is contained in:
Anton Dyudin 2015-05-26 14:23:39 -07:00
parent 1f8a857d7a
commit 06384f6bc0

View File

@ -0,0 +1,8 @@
recl = React.createClass
[div,textarea] = [React.DOM.div,React.DOM.textarea]
module.exports = recl
render: -> div {}, textarea ref:'ed', value:@props.value
componentDidMount: ->
CodeMirror.fromTextArea @refs.ed.getDOMNode(),
readOnly:true