Fix Start reply at top of email (close #865)

This commit is contained in:
RainLoop 2017-09-20 20:26:16 +03:00
parent 33a9234d9c
commit 39ddb49cd6

View file

@ -22,6 +22,12 @@
range.select(); range.select();
} }
}, },
toTop = function (el) {
selectRange(el, 0);
if (el) {
el.scrollTop = 0;
}
},
simplePlainToHtml = function (sPlain) { simplePlainToHtml = function (sPlain) {
return sPlain return sPlain
.replace(/&/g, '&') .replace(/&/g, '&')
@ -144,7 +150,7 @@
editor.focus(); editor.focus();
if (editor.mode === 'plain') { if (editor.mode === 'plain') {
selectRange(editor.__textarea, 0); toTop(editor.__textarea);
} }
}); });