Skip to content

Commit

Permalink
Delay TinyMCE init to focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 18, 2018
1 parent 04b7f97 commit c6903c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/components/rich-text/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export default class TinyMCE extends Component {
constructor() {
super();
this.bindEditorNode = this.bindEditorNode.bind( this );
this.onFocus = this.onFocus.bind( this );
}

componentDidMount() {
onFocus() {
this.initialize();
}

Expand Down Expand Up @@ -243,6 +244,7 @@ export default class TinyMCE extends Component {
dangerouslySetInnerHTML: { __html: initialHTML },
onPaste,
onInput,
onFocus: this.onFocus,
} );
}
}

0 comments on commit c6903c1

Please sign in to comment.