Skip to content

Commit

Permalink
[removed] JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mzabriskie committed Jun 12, 2015
1 parent ba4c236 commit 74aa85d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/components/TinyMCE.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var React = require('react');
var DOM = React.DOM;
var uuid = require('../helpers/uuid');
var uc_first = require('../helpers/uc_first');

Expand Down Expand Up @@ -55,16 +56,16 @@ module.exports = React.createClass({
};

tinymce.init(this.props.config);
setTimeout(function () {
tinymce.get(this.id).setContent(this.props.content);
}.bind(this), 0);
},

componentWillUnmount: function () {
tinymce.remove(this.id);
},

render: function () {
return <textarea ref="text" id={this.id}></textarea>;
return DOM.textarea({
id: this.id,
defaultValue: this.props.content
});
}
});

0 comments on commit 74aa85d

Please sign in to comment.