Skip to content

Commit

Permalink
Merge pull request hackerwins#36 from kbarabash/fix-summernote-function
Browse files Browse the repository at this point in the history
FIX: onInit() function "summernote" loses context
  • Loading branch information
i-kitaev authored Sep 1, 2017
2 parents 6e4332c + 7e4f5f2 commit 5571348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Summernote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ReactSummernote extends Component {

if (typeof onInit === 'function') {
onInit({
summernote: this.editor.summernote,
summernote: this.editor.summernote.bind(this.editor),
focus: this.focus,
isEmpty: this.isEmpty,
reset: this.reset,
Expand Down

0 comments on commit 5571348

Please sign in to comment.