FIX: Don't scroll to the bottom when inserting in the middle
This commit is contained in:
parent
ff85fa2a98
commit
5f948a35c6
|
@ -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…
Reference in New Issue