Opened 8 years ago
Closed 8 years ago
#16845 closed Bug (fixed)
[IE11] Cursor jump to the top of the editor
Reported by: | mencia | Owned by: | Tade0 |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.7.0 |
Component: | General | Version: | 4.6.0 |
Keywords: | IE | Cc: |
Description
Steps to reproduce
- Change the editor to the source code mode.
- Copy and paste the contents in the attached file.
- Change the editor to the WYSIWYG mode.
- Scroll down the editor viewport to the bottom.
- Left mouse click on the last 'brownie.jpg' image.
- Cursor jump to the top of the editor viewport.
Other details (browser, OS, CKEditor version, installed plugins)
[CKEditor version]
- ckeditor_4.6.2_full
- ckeditor_full_nightly
- CKEditor Nightly Build | Demo Full http://nightly.ckeditor.com/17-02-07-07-08/full/samples/
[Client OS, Browser]
- Windows 10 Pro(64bit) / Internet Explorer 11
Attachments (1)
Change History (13)
Changed 8 years ago by
Attachment: | code_for_reproduce.txt added |
---|
comment:1 Changed 8 years ago by
comment:2 Changed 8 years ago by
Keywords: | IE added |
---|---|
Status: | new → confirmed |
Version: | 4.6.2 → 4.6.0 |
Problem can be reproduced from CKEditor 4.6.0 in IE9-11.
comment:3 Changed 8 years ago by
Milestone: | → CKEditor 4.7.0 |
---|
comment:4 Changed 8 years ago by
We need to bisect it first to understand when the bug was introduced.
comment:5 Changed 8 years ago by
Owner: | set to Tade0 |
---|---|
Status: | confirmed → assigned |
comment:6 Changed 8 years ago by
Observation: clicking on the image scrolls the editor, while clicking next to it but close enough for the cursor to change into the move
icon simply selects the image.
comment:7 Changed 8 years ago by
Observation: This does not happen in all editor configurations.
There's something special in the way that last image is made.
comment:8 Changed 8 years ago by
As with any bug of this type opening the dev tools is enough to make it disappear.
comment:9 Changed 8 years ago by
Bisecting revealed that this is the offending commit: https://github.com/ckeditor/ckeditor-dev/commit/9f97b190fcaab80780e720dd1c7681c60d9f7dea
So apparently there's a problem somewhere in the copyformatting
plugin.
comment:10 Changed 8 years ago by
This particular problem can be solved by setting the focusEditor
flag in the applyFormatting
command in CF to false
.
Unit tests pass - checking if it doesn't break anything else.
comment:11 Changed 8 years ago by
Status: | assigned → review |
---|
Checked enough manual tests(especially ones concerning focus) to be confident that nothing has been broken by this change.
Added manual test.
Changes pushed to branch:t/16845.
comment:12 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
LGTM. Merged with git:a4e9eef.
Expected result
The image should be selected.
Actual result
Cursor jump to the top of the editor viewport.