1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

addTag search

This commit is contained in:
Rokt33r
2015-10-22 08:30:39 +09:00
parent c507dfa6c4
commit f56df7c16d
10 changed files with 63 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react'
let ReactDOM = require('react-dom')
var ace = window.ace
module.exports = React.createClass({
@@ -16,7 +16,7 @@ module.exports = React.createClass({
}
},
componentDidMount: function () {
var el = React.findDOMNode(this.refs.target)
var el = ReactDOM.findDOMNode(this.refs.target)
var editor = ace.edit(el)
editor.$blockScrolling = Infinity
editor.setValue(this.props.code)