mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
FIX: Don't scroll to the bottom when inserting in the middle
This commit is contained in:
parent
ff85fa2a98
commit
5f948a35c6
1 changed files with 0 additions and 1 deletions
|
@ -291,7 +291,6 @@ export default Ember.Component.extend({
|
|||
_selectText(from, length) {
|
||||
Ember.run.scheduleOnce('afterRender', () => {
|
||||
const textarea = this.$('textarea.d-editor-input')[0];
|
||||
textarea.focus();
|
||||
textarea.selectionStart = from;
|
||||
textarea.selectionEnd = textarea.selectionStart + length;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue