Skip to content

Commit 1325633

Browse files
authored
Merge pull request #17 from alecrobins/add-focus-blur-to-context
Add focus and blur methods to the context
2 parents 4dfeb43 + 52994cb commit 1325633

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Editor.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export default React.createClass({
3535
getEditorState: PropTypes.func,
3636
getReadOnly: PropTypes.func,
3737
setReadOnly: PropTypes.func,
38-
onChange: PropTypes.func
38+
onChange: PropTypes.func,
39+
focus: PropTypes.func,
40+
blur: PropTypes.func
3941
},
4042

4143
getDefaultProps() {
@@ -68,7 +70,9 @@ export default React.createClass({
6870
getEditorState: this.getDecoratedState,
6971
getReadOnly: this.getReadOnly,
7072
setReadOnly: this.setReadOnly,
71-
onChange: this.props.onChange
73+
onChange: this.props.onChange,
74+
focus: this.focus,
75+
blur: this.blur
7276
};
7377
},
7478

0 commit comments

Comments
 (0)