Skip to content

Commit a6287b6

Browse files
author
Tom McKinney
committed
Added "name" prop to assign to textarea
1 parent edf674e commit a6287b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/components/TinyMCE.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const TinyMCE = React.createClass({
3636
config: React.PropTypes.object,
3737
content: React.PropTypes.string,
3838
id: React.PropTypes.string,
39-
className: React.PropTypes.string
39+
className: React.PropTypes.string,
40+
name: React.PropTypes.string
4041
},
4142

4243
getDefaultProps() {
@@ -86,6 +87,7 @@ const TinyMCE = React.createClass({
8687
<textarea
8788
id={this.id}
8889
className={this.props.className}
90+
name={this.props.name}
8991
defaultValue={this.props.content}
9092
/>
9193
);

0 commit comments

Comments
 (0)