UX: Focus composer input after adding text.

This commit is contained in:
Guo Xiang Tan 2015-11-17 16:42:26 +08:00
parent aeccc030d6
commit e56b3b6a38
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ export default Ember.Component.extend({
const insert = `${sel.pre}${text}`;
this.set('value', `${insert}${sel.post}`);
this._selectText(insert.length, 0);
Ember.run.once("afterRender", () => { $("textarea.d-editor-input").focus(); } );
},
actions: {