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

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