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.
2 parents e009c49 + eaf81a2 commit e5ddf8cCopy full SHA for e5ddf8c
lib/components/TinyMCE.js
@@ -69,12 +69,21 @@ const TinyMCE = React.createClass({
69
},
70
71
render() {
72
- return (
73
- <textarea
74
- id={this.id}
75
- defaultValue={this.props.content}
76
- />
77
- );
+ if (this.props.config.inline) {
+ return (
+ <div
+ id={this.id}
+ dangerouslySetInnerHTML={ {__html: this.props.content} }
+ />
78
+ );
79
+ } else {
80
81
+ <textarea
82
83
+ defaultValue={this.props.content}
84
85
86
+ }
87
88
89
_init(config, content) {
0 commit comments