Opened 11 years ago
Closed 11 years ago
#11993 closed Bug (fixed)
Pasting content scrolls document in Google Chrome
| Reported by: | Wiktor Walc | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.5.0 Beta |
| Component: | General | Version: | 4.0 |
| Keywords: | Support | Cc: | harry@… |
Description
Reported through support channel:
We are seeing a scroll issue after pasting text into the CKEditor rendered in a div with a vertical scrollbar. After pasting, the page is scrolled to the bottom of the view.
This happens in Chrome. It does not happen in IE 11 or FireFox.
I was able to confirm this using the attached sample. Copy a single line of text and paste it into CKEditor.
I reproduced this in CKEditor 4.4.1 and 4.0
Attachments (1)
Change History (7)
Changed 11 years ago by
| Attachment: | replacebycode.html added |
|---|
comment:1 Changed 11 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 11 years ago by
| Cc: | harry@… added |
|---|
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
| Keywords: | Support added |
|---|
comment:5 Changed 11 years ago by
| Milestone: | → CKEditor 4.5.0 |
|---|
It looks like the issue is gone already (major, c8ffa119). Setting the milestone to 4.5.0 to catch regressions.
comment:6 Changed 11 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | confirmed → closed |
I confirmed that now (on git:fb2942a), when we've got most of the pieces in place, everything works fine.

Unfortunately the hack we are using to intercept pasting cannot be further improved, so in specific situations it will cause scrolling. The only solution I see is finally switching to using paste event (and data transfer object carried by it), what we're planning in CKEditor 4.5.