We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a9234 commit 39ddb49Copy full SHA for 39ddb49
vendors/ckeditor-plugins/plain/plugin.js
@@ -6,7 +6,7 @@
6
if (!el) {
7
return;
8
}
9
- if(end === undefined) {
+ if (end === undefined) {
10
end = start;
11
12
if('selectionStart' in el) {
@@ -22,6 +22,12 @@
22
range.select();
23
24
},
25
+ toTop = function (el) {
26
+ selectRange(el, 0);
27
+ if (el) {
28
+ el.scrollTop = 0;
29
+ }
30
+ },
31
simplePlainToHtml = function (sPlain) {
32
return sPlain
33
.replace(/&/g, '&')
@@ -144,7 +150,7 @@
144
150
editor.focus();
145
151
146
152
if (editor.mode === 'plain') {
147
- selectRange(editor.__textarea, 0);
153
+ toTop(editor.__textarea);
148
154
149
155
});
156
0 commit comments