We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4c236 commit 74aa85dCopy full SHA for 74aa85d
lib/components/TinyMCE.js
@@ -1,4 +1,5 @@
1
var React = require('react');
2
+var DOM = React.DOM;
3
var uuid = require('../helpers/uuid');
4
var uc_first = require('../helpers/uc_first');
5
@@ -55,16 +56,16 @@ module.exports = React.createClass({
55
56
};
57
58
tinymce.init(this.props.config);
- setTimeout(function () {
59
- tinymce.get(this.id).setContent(this.props.content);
60
- }.bind(this), 0);
61
},
62
63
componentWillUnmount: function () {
64
tinymce.remove(this.id);
65
66
67
render: function () {
68
- return <textarea ref="text" id={this.id}></textarea>;
+ return DOM.textarea({
+ id: this.id,
+ defaultValue: this.props.content
69
+ });
70
}
71
});
0 commit comments