FIX: Don't scroll to the bottom when inserting in the middle

This commit is contained in:
Robin Ward 2015-11-11 16:39:55 -05:00
parent ff85fa2a98
commit 5f948a35c6
1 changed files with 0 additions and 1 deletions

View File

@ -291,7 +291,6 @@ export default Ember.Component.extend({
_selectText(from, length) { _selectText(from, length) {
Ember.run.scheduleOnce('afterRender', () => { Ember.run.scheduleOnce('afterRender', () => {
const textarea = this.$('textarea.d-editor-input')[0]; const textarea = this.$('textarea.d-editor-input')[0];
textarea.focus();
textarea.selectionStart = from; textarea.selectionStart = from;
textarea.selectionEnd = textarea.selectionStart + length; textarea.selectionEnd = textarea.selectionStart + length;
}); });