mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-23 22:36:01 +08: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
10
vendors/ckeditor-plugins/plain/plugin.js
vendored
10
vendors/ckeditor-plugins/plain/plugin.js
vendored
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue