Skip to content

Commit

Permalink
Focus editor after setting faked selection inside it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Sep 11, 2013
1 parent 978fad8 commit b3e1f09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/widget/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,13 @@
* Focuses widget by selecting it.
*/
focus: function() {
// Always focus editor (not only when focusManger.hasFocus is false) (because of #10483).
this.editor.focus();

var sel = this.editor.getSelection();

if ( sel )
sel.fake( this.wrapper );

// Always focus editor (not only when focusManger.hasFocus is false) (because of #10483).
this.editor.focus();
},

/**
Expand Down

0 comments on commit b3e1f09

Please sign in to comment.