Skip to content

Commit b879f37

Browse files
author
Michael Nomitch
committed
add classname prop
1 parent fc8a964 commit b879f37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/components/TinyMCE.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const TinyMCE = React.createClass({
3535
propTypes: {
3636
config: React.PropTypes.object,
3737
content: React.PropTypes.string,
38-
id: React.PropTypes.string
38+
id: React.PropTypes.string,
39+
className: React.PropTypes.string
3940
},
4041

4142
getDefaultProps() {
@@ -79,13 +80,15 @@ const TinyMCE = React.createClass({
7980
return (
8081
<div
8182
id={this.id}
83+
className={this.props.className}
8284
dangerouslySetInnerHTML={ {__html: this.props.content} }
8385
/>
8486
);
8587
} else {
8688
return (
8789
<textarea
8890
id={this.id}
91+
className={this.props.className}
8992
defaultValue={this.props.content}
9093
/>
9194
);

0 commit comments

Comments
 (0)