Skip to content

Commit 74aa85d

Browse files
committed
[removed] JSX
1 parent ba4c236 commit 74aa85d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/components/TinyMCE.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var React = require('react');
2+
var DOM = React.DOM;
23
var uuid = require('../helpers/uuid');
34
var uc_first = require('../helpers/uc_first');
45

@@ -55,16 +56,16 @@ module.exports = React.createClass({
5556
};
5657

5758
tinymce.init(this.props.config);
58-
setTimeout(function () {
59-
tinymce.get(this.id).setContent(this.props.content);
60-
}.bind(this), 0);
6159
},
6260

6361
componentWillUnmount: function () {
6462
tinymce.remove(this.id);
6563
},
6664

6765
render: function () {
68-
return <textarea ref="text" id={this.id}></textarea>;
66+
return DOM.textarea({
67+
id: this.id,
68+
defaultValue: this.props.content
69+
});
6970
}
7071
});

0 commit comments

Comments
 (0)