Opened 10 years ago
Last modified 10 years ago
#11500 closed Bug
CKEditor on [Webkit/Blink] drops cursor when changes in one editor update another — at Version 4
Reported by: | David | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.0 |
Component: | General | Version: | 4.0 Beta |
Keywords: | IBM Blink | Cc: | david_karam@…, fiedler@… |
Description (last modified by )
- Go to http://ckeditor.com/demo#inline on a Webkit-based browser
- Bind contents of editor1 and editor2 on a key listener
CKEDITOR.instances.editor1.on("key", function() { CKEDITOR.instances.editor2.setData(CKEDITOR.instances.editor1.getData()) });
- Update editor1 text.
Expected: editor2 updates. editor1 cursor remains at original place. Observed: editor2 updates. editor1 cursor goes back to start of editor.
Screencast attached. Firefox works fine.
Change History (5)
Changed 10 years ago by
Attachment: | CK Editor - Webkit issue.mp4 added |
---|
comment:1 Changed 10 years ago by
Cc: | david_karam@… added |
---|
comment:2 Changed 10 years ago by
Further debugging found the issue in CKEditor in selection.js - line 452.
Webkit's selection will mess up after the data loading.
CKEDITOR.env.webkit && editor.on( 'setData', clearSelection );
Would it be enough to only clear the selection if the selection is in the current element?
Is there any possible workaround that can be provided as this issue is blocking us.
comment:4 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Keywords: | IBM Blink added; ibm removed |
Status: | new → confirmed |
Summary: | CKEditor on Webkit drops cursor when changes in one editor update another → CKEditor on [Webkit/Blink] drops cursor when changes in one editor update another |
Version: | 4.3.2 → 4.0 Beta |
Problem can be reproduced from CKEditor 4.0 beta in Webkit and Blink in inline editors only.
Screencast of issue