mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 11:08:45 +03:00
re-add CM react
This commit is contained in:
parent
1f8a857d7a
commit
06384f6bc0
8
base/pub/tree/src/js/components/CodeMirror.coffee
Normal file
8
base/pub/tree/src/js/components/CodeMirror.coffee
Normal 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
|
Loading…
Reference in New Issue
Block a user