Skip to content
Permalink
Browse files

Focus editor after setting faked selection inside it.

  • Loading branch information...
Reinmar committed Jul 4, 2013
1 parent 978fad8 commit b3e1f09988377473621b48be35ff158d2dc7cf5a
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/widget/plugin.js
@@ -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();
},

/**

0 comments on commit b3e1f09

Please sign in to comment.
You can’t perform that action at this time.