mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3901 from tgxworld/focus_editor_after_inserting_text
UX: Focus composer input after adding text.
This commit is contained in:
commit
bc8b44524b
1 changed files with 1 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue