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 Jakub Ś)

  1. Go to http://ckeditor.com/demo#inline on a Webkit-based browser
  2. Bind contents of editor1 and editor2 on a key listener
    CKEDITOR.instances.editor1.on("key", function() { CKEDITOR.instances.editor2.setData(CKEDITOR.instances.editor1.getData()) });
    
  3. 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 David

Screencast of issue

comment:1 Changed 10 years ago by David

Cc: david_karam@… added

comment:2 Changed 10 years ago by David

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:3 Changed 10 years ago by mffiedler

Cc: fiedler@… added

Add CC

comment:4 Changed 10 years ago by Jakub Ś

Description: modified (diff)
Keywords: IBM Blink added; ibm removed
Status: newconfirmed
Summary: CKEditor on Webkit drops cursor when changes in one editor update anotherCKEditor on [Webkit/Blink] drops cursor when changes in one editor update another
Version: 4.3.24.0 Beta

Problem can be reproduced from CKEditor 4.0 beta in Webkit and Blink in inline editors only.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy