mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fix Start reply at top of email (close #865)
This commit is contained in:
parent
33a9234d9c
commit
39ddb49cd6
1 changed files with 8 additions and 2 deletions
8
vendors/ckeditor-plugins/plain/plugin.js
vendored
8
vendors/ckeditor-plugins/plain/plugin.js
vendored
|
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue